Refactoring Round 1 (#228) #683
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 Tests | |
on: [push] | |
jobs: | |
checker: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: install dependencies | |
run: | | |
pip install -r requirements-dev.txt | |
- name: pre-commit, mypy & pylint | |
run: | | |
pre-commit run --all-files | |
mypy ./field_friend --non-interactive | |
# pylint ./field_friend | |
pytest: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- run: pip install -e . -r requirements-dev.txt | |
- name: run pytests | |
env: | |
PYTHONPATH: ${{ github.workspace }} | |
run: pytest |