-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (35 loc) · 920 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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