Skip to content

triggered by push from bsweger #5

triggered by push from bsweger

triggered by push from bsweger #5

name: run-code-checks
run-name: ${{ github.action }} triggered by ${{ github.event_name }} from ${{ github.actor }}
on: [push]
jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -e .
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: lint
run: |
ruff . --fix
ruff format .
- name: type check
run: |
mypy .
- name: run tests
run: |
pytest
check-requirements:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: compare requirements to pyproject dependencies
run: |
echo 'not implemented'