File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Tests
2+ on :
3+ push :
4+ branches : [main]
5+ pull_request :
6+ branches : [main]
7+
8+ jobs :
9+ pytest :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ python-version : ["3.9", "3.12"]
14+ #
15+ # This allows a subsequently queued workflow run to interrupt previous runs
16+ concurrency :
17+ group : " ${{ github.workflow }}-${{ matrix.python-version}}-${{ matrix.os }} @ ${{ github.ref }}"
18+ cancel-in-progress : true
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+ cache : " pip"
27+ # You can test your matrix by printing the current Python version
28+ - name : Display Python version
29+ run : python3 -c "import sys; print(sys.version)"
30+
31+ - name : Install dependencies
32+ run : python3 -m pip install --upgrade turftopic[pyro-ppl] pandas pytest
33+
34+ - name : Run tests
35+ run : python3 -m pytest tests/
36+
You can’t perform that action at this time.
0 commit comments