File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : Run tests
5+
6+ on :
7+ push :
8+ branches : [ master ]
9+ pull_request :
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ${{ matrix.os }}
15+ timeout-minutes : 20
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ os : [ubuntu-latest, macos-latest, windows-latest]
20+ python-version :
21+ - ' 3.12'
22+ - ' 3.11'
23+ - ' 3.10'
24+ - ' 3.9'
25+ - ' 3.8'
26+ steps :
27+ - uses : actions/checkout@v4
28+ - name : Set up Python ${{ matrix.python-version }}
29+ uses : actions/setup-python@v4
30+ with :
31+ python-version : ${{ matrix.python-version }}
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ pip install -r requirements.txt
36+ pip install -r tests/requirements.txt
37+ - name : Run static analysis lint
38+ uses :
pre-commit/[email protected] 39+ - name : Run pytest
40+ shell : bash
41+ run : |
42+ export PYTHONPATH=.
43+ pytest tests/
You can’t perform that action at this time.
0 commit comments