Skip to content

Commit 8e040fe

Browse files
committed
feat: Added more complex unit tests
1 parent 2c843ef commit 8e040fe

3 files changed

Lines changed: 335 additions & 141 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

0 commit comments

Comments
 (0)