Skip to content

Psgs integration

Psgs integration #37

Workflow file for this run

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"