TARDIS-em v0.3.0 #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |