triggered by push from bsweger #5
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: 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' |