File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/test.yml
2+ name : Run Tests
3+
4+ on :
5+ push :
6+ workflow_dispatch :
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ python-version : ["3.10", "3.11", "3.12", "3.13"]
14+
15+ steps :
16+ - name : Check out repository code
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install .
27+ python -m pip install .[dev]
28+
29+ - name : Test
30+ run : |
31+ pytest ./tests
32+
33+ code-style :
34+ runs-on : ubuntu-latest
35+ steps :
36+ - name : Check out repository code
37+ uses : actions/checkout@v4
38+
39+ - name : Set up Python
40+ uses : actions/setup-python@v5
41+ with :
42+ python-version : ' 3.10'
43+
44+ - name : Run pre-commit to check code style
45+ run : |
46+ pip install pre-commit
47+ pre-commit run --all-files
You can’t perform that action at this time.
0 commit comments