File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Unit test, format and lint check
5+
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches : [ "git-workflow" ]
10+ pull_request :
11+ branches : [ "main" ]
12+
13+ jobs :
14+ test :
15+
16+ runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ python-version : ["3.9", "3.10", "3.11", "3.12"]
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+ - name : Set up Python ${{ matrix.python-version }}
25+ uses : actions/setup-python@v3
26+ with :
27+ python-version : ${{ matrix.python-version }}
28+ - name : Install dependencies
29+ run : |
30+ python -m pip install --upgrade pip
31+ python -m pip install uv
32+ uv venv
33+ make dev
34+ - name : Format and Lint
35+ run : |
36+ make check
37+ - name : Test with pytest
38+ run : |
39+ make test
You can’t perform that action at this time.
0 commit comments