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 : Unit Tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ get-supported-versions :
11+ name : Get Supported Versions
12+ uses : ./.github/workflows/get-supported-versions.yml
13+ secrets : inherit
14+
15+ unit-tests :
16+ name : Unit Tests (Python ${{ matrix.python-version }})
17+ needs : get-supported-versions
18+ runs-on : ubuntu-latest
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ python-version : ${{ fromJson(needs.get-supported-versions.outputs.supported_python) }}
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@v4
26+
27+ - name : Setup Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v5
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ pip install packaging pyyaml colorama requests
36+
37+ - name : Run unit tests
38+ run : python -m unittest discover -s test -v
You can’t perform that action at this time.
0 commit comments