-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (44 loc) · 1.37 KB
/
scheduled-full-ci.yml
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
43
44
45
46
47
48
49
50
51
name: QMI Python CI full test runner
on:
schedule:
# Schedule for every Monday at 7am
- cron: "0 7 * * 1"
workflow_dispatch:
inputs:
branch:
description: 'Branch to run workflow on'
required: true
default: 'main'
jobs:
full-test:
strategy:
max-parallel: 1
matrix:
python-version: ["3.11", "3.12", "3.13"]
uses: ./.github/workflows/reusable-ci-workflows.yml
with:
python-version: ${{ matrix.python-version }}
ref: ${{ github.head-ref }}
unit-tests:
runs-on: ubuntu-latest
needs: full-test
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || inputs.ref }}
- name: Check py-xdrlib installation for Python 3.13
if: ${{ matrix.python-version }} == "3.13"
run: python -m pip install py-xdrlib
- name: Run unit tests and generate report
if: always()
run: |
python -m pip install .
python -m pip install unittest-xml-reporting
python -m xmlrunner --output-file testresults.xml discover --start-directory=tests --pattern="test_*.py"
- name: Upload unit test results
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-results-${{ matrix.python-version }}
path: testresults.xml