Psgs integration #37
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: Build, lint and test package | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.9", "3.10" ] | |
outputs: | |
error-check: ${{ steps.error-check.conclusion }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Check imports | |
working-directory: ./ | |
run: | | |
pip install --upgrade pip | |
pip install . | |
python scripts/check_imports.py | |
- name: Linting | |
working-directory: ./ | |
run: | | |
pip install --upgrade pip | |
pip install . | |
pip install -r requirements-dev.txt | |
black --check . | |
- name: Unit tests | |
working-directory: ./ | |
run: | | |
pip install --upgrade pip | |
pip install . | |
pip install -r requirements-dev.txt | |
python -m unittest discover -s ./tests/ -p "test_*.py" | |