-
Notifications
You must be signed in to change notification settings - Fork 15
133 lines (127 loc) · 4.45 KB
/
tests-linux.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Run tests (Linux)
# Manual start only. Trying the save some minutes :)
'on':
[workflow_dispatch]
# Cancel in-progress jobs/runs for the same workflow; if you push to same
# pull request twice, the previous workflow should be canceled.
# From: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: linux-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Common environment variables
env:
TOX_REQUIREMENT: 'tox~=4.6.0'
jobs:
test-linux-py37:
# List of available versions: https://github.com/actions/python-versions/blob/main/versions-manifest.json
runs-on: ubuntu-22.04
env:
PYTHON_VERSION: '3.7'
PYTHON_EXECUTABLE: 'python3.7'
PYTHON_TOX_ENVS: 'py37'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Show OS version
run: cat /etc/os-release
- run: printenv
- name: Check D-Bus
run: ps -ef | grep dbus | grep -v grep
- name: Show python version
run: python --version
- name: Show platform information
run: python -c "import platform; print(platform.platform())"
- name: install tox
run: |
${{ env.PYTHON_EXECUTABLE }} -m pip install -U pip wheel && \
${{ env.PYTHON_EXECUTABLE }} -m pip install ${{ env.TOX_REQUIREMENT }}
- name: Run tests with tox
run: tox -e ${{ env.PYTHON_TOX_ENVS }}
test-linux-py310:
runs-on: ubuntu-22.04
env:
PYTHON_VERSION: '3.10'
PYTHON_EXECUTABLE: 'python3.10'
PYTHON_TOX_ENVS: 'py310,check'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Show OS version
run: cat /etc/os-release
- run: printenv
- name: Check D-Bus
run: ps -ef | grep dbus | grep -v grep
- name: Show python version
run: python --version
- name: Show platform information
run: python -c "import platform; print(platform.platform())"
- name: install tox
run: |
${{ env.PYTHON_EXECUTABLE }} -m pip install -U pip wheel && \
${{ env.PYTHON_EXECUTABLE }} -m pip install ${{ env.TOX_REQUIREMENT }}
- name: Run tests with tox
run: tox -e ${{ env.PYTHON_TOX_ENVS }}
test-linux-py312:
runs-on: ubuntu-22.04
env:
PYTHON_VERSION: '3.12'
PYTHON_EXECUTABLE: 'python3.12'
PYTHON_TOX_ENVS: 'py312'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Show OS version
run: cat /etc/os-release
- run: printenv
- name: Check D-Bus
run: ps -ef | grep dbus | grep -v grep
- name: Show python version
run: python --version
- name: Show platform information
run: python -c "import platform; print(platform.platform())"
- name: install tox
run: |
${{ env.PYTHON_EXECUTABLE }} -m pip install -U pip wheel && \
${{ env.PYTHON_EXECUTABLE }} -m pip install ${{ env.TOX_REQUIREMENT }}
- name: Run tests with tox
run: tox -e ${{ env.PYTHON_TOX_ENVS }}
test-linux-py313-alpha:
runs-on: ubuntu-22.04
env:
PYTHON_VERSION: '3.13.0-alpha.2'
PYTHON_EXECUTABLE: 'python3.13'
PYTHON_TOX_ENVS: 'py313'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Show OS version
run: cat /etc/os-release
- run: printenv
- name: Check D-Bus
run: ps -ef | grep dbus | grep -v grep
- name: Show python version
run: python --version
- name: Show platform information
run: python -c "import platform; print(platform.platform())"
- name: install tox
run: |
${{ env.PYTHON_EXECUTABLE }} -m pip install -U pip wheel && \
${{ env.PYTHON_EXECUTABLE }} -m pip install ${{ env.TOX_REQUIREMENT }}
- name: Run tests with tox
run: tox -e ${{ env.PYTHON_TOX_ENVS }}