-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (59 loc) · 1.98 KB
/
main.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
name: mdapi
on: [push, pull_request, workflow_dispatch]
jobs:
ci-basic:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install the base dependencies
run: |
python3 -m pip install --upgrade poetry tox
# TEMPORARILY COMMENTED OUT UNTIL THE POETRY 2.X BECOMES COMMON
# - name: Check the correctness of the project config
# run: |
# poetry check
- name: Check the quality of the code
run: |
tox -e cleaning
ci-tests-download-required:
strategy:
fail-fast: false
matrix:
tox-env: ["py38_download_required", "py39_download_required", "py310_download_required", "py311_download_required", "py312_download_required"]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install the base dependencies
run: |
python3 -m pip install --upgrade tox
- name: Set up user for running the testcases
run: |
useradd testrunner
chown -R testrunner .
- name: Execute tox
run: |
su testrunner -c "tox -e ${{ matrix.tox-env }}"
ci-tests-download-needless:
strategy:
fail-fast: false
matrix:
tox-env: ["py38_download_needless", "py39_download_needless", "py310_download_needless", "py311_download_needless", "py312_download_needless"]
runs-on: ubuntu-latest
container: fedorapython/fedora-python-tox:latest
steps:
- uses: actions/checkout@v4
- name: Install the base dependencies
run: |
python3 -m pip install --upgrade tox
- name: Set up user for running the testcases
run: |
useradd testrunner
chown -R testrunner .
- name: Execute tox
run: |
su testrunner -c "tox -e ${{ matrix.tox-env }}"