File tree Expand file tree Collapse file tree 1 file changed +21
-12
lines changed
Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Original file line number Diff line number Diff line change 11# Run pytest with GitHub Actions
22name : pytest
33
4- on : [push]
5-
6- defaults :
7- run :
8- working-directory : ./tests
4+ on :
5+ push :
6+ branches :
7+ - master
8+ - main
9+ pull_request :
10+ branches :
11+ - master
12+ - main
913
1014jobs :
11- test :
15+ build :
1216 runs-on : ubuntu-latest
1317
14- steps :
15- - uses : actions/checkout@v2
1618
17- - name : Set up Python 3.6
18- uses : actions/setup-python@v2
19+ steps :
20+ - uses : actions/checkout@v3
21+ - name : Set up Python
22+ uses : actions/setup-python@v4
1923 with :
20- python-version : 3.6
24+ python-version : ' 3.8 '
2125
2226 - name : Install dependencies
2327 run : |
2428 python -m pip install --upgrade pip
25- pip install -r requirements.txt
29+ pip install pytest
30+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
32+ - name : Install package
33+ run : |
34+ pip install .
2635
2736 - name : Run pytest
2837 run : |
You can’t perform that action at this time.
0 commit comments