-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (32 loc) · 1.08 KB
/
ci-testing.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will run any files matching "tests/*_test.py" using the Python
# unittest module.
name: CI Testing
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./requirements.txt
- name: Run unit tests
run: |
python -m unittest discover -p *_test.py tests/unit/
- name: Run integration tests
run: |
python -m unittest discover -p *_test.py tests/integration/
- name: Run live tests
if: github.repository == 'leonhard-s/auraxium' && github.event_name != 'pull_request'
env:
SERVICE_ID: ${{secrets.REPO_SERVICE_ID}}
run: |
python -m unittest discover -p *_test.py tests/live/