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 : Python Unittest
2+
3+ on :
4+ push :
5+ branches : [ master, v2 ]
6+ pull_request :
7+ branches : [ master, v2 ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [3.11]
15+
16+ steps :
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
19+
20+ - name : Cache pip
21+ uses : actions/cache@v4
22+ with :
23+ path : ~/.cache/pip
24+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
25+ restore-keys : |
26+ ${{ runner.os }}-pip-
27+
28+ - name : Set up Python
29+ uses : actions/setup-python@v5
30+ with :
31+ python-version : ${{ matrix.python-version }}
32+
33+ - name : Install dependencies
34+ run : |
35+ python -m pip install --upgrade pip
36+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
37+
38+ - name : Run unit tests
39+ run : |
40+ python -m unittest discover -v || true
Original file line number Diff line number Diff line change 1+ httpx == 0.28.1
You can’t perform that action at this time.
0 commit comments