File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tests
2+
3+ on :
4+ push :
5+ branches : [ "master" ]
6+ pull_request :
7+ branches : [ "master" ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Python
19+ uses : actions/setup-python@v5
20+ id : cp312
21+ with :
22+ python-version-file : " .python-version"
23+ cache : " pip"
24+ cache-dependency-path : " requirements-test.txt"
25+
26+ # for testing
27+ - name : Check cache hit
28+ run : echo "${{ steps.cp312.outputs.cache-hit }}" # true if cache-hit occurred on the primary key
29+
30+ - name : Install dependencies
31+ run : |
32+ python -m pip install --upgrade pip
33+ pip install -r requirements-test.txt
34+
35+ - name : Run tests
36+ run : |
37+ pytest --disable-warnings -q -rA
You can’t perform that action at this time.
0 commit comments