Skip to content

Python PyTest

Python PyTest #14

Workflow file for this run

name: Python PyTest
on:
workflow_dispatch:
release:
types: [published, prereleased, released]
jobs:
test_build:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade coverage
python -m pip install black pytest ipython
- name: Install requirements
run: |
pip install -r requirements.txt
pip install -e .
- name: Lint with flake8
run: |
# Run black to ensure syntax cleanness
black .
- name: Test with pytest
run: |
pytest