Skip to content

Commit 529d89c

Browse files
authored
Merge pull request #5363 from JakaKokosar/ci_tests
ci: simplify testing workflows, add experimental jobs for python 3.9
2 parents 8d2429e + b30d133 commit 529d89c

File tree

10 files changed

+165
-254
lines changed

10 files changed

+165
-254
lines changed

.github/workflows/cancel.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Cancel
2+
on:
3+
workflow_run:
4+
workflows: ["Test"]
5+
types:
6+
- requested
7+
jobs:
8+
cancel:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: styfle/cancel-workflow-action@0.8.0
12+
with:
13+
workflow_id: ${{ github.event.workflow.id }}

.github/workflows/cleanup_workflow.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/lint_workflow.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/linux_workflow.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/macos_workflow.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/miscellaneous_workflow.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: '2'
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
24+
- name: Install Tox
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install --upgrade tox tox-pip-version
28+
29+
- name: Run Pylint
30+
run: tox -e pylint-ci
31+
32+
test_on_linux:
33+
runs-on: ${{ matrix.os }}
34+
timeout-minutes: 30
35+
name: ${{ matrix.name }} (${{ matrix.os }}, py${{ matrix.python-version }})
36+
strategy:
37+
fail-fast: False
38+
matrix:
39+
os: [ubuntu-18.04]
40+
python-version: [3.7, 3.8, 3.9]
41+
tox_env: [orange-released]
42+
name: [Released]
43+
include:
44+
- os: ubuntu-18.04
45+
python-version: 3.8
46+
tox_env: orange-latest
47+
name: Latest
48+
49+
services:
50+
postgres:
51+
image: orangedm/postgres:11
52+
env:
53+
POSTGRES_USER: postgres_user
54+
POSTGRES_PASSWORD: postgres_password
55+
POSTGRES_DB: postgres_db
56+
ports:
57+
- 5432:5432
58+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
59+
60+
SQLServer:
61+
image: mcr.microsoft.com/mssql/server:2017-latest
62+
env:
63+
ACCEPT_EULA: Y
64+
SA_PASSWORD: sqlServerPassw0rd
65+
ports:
66+
- 1433:1433
67+
68+
steps:
69+
- uses: actions/checkout@v2
70+
- name: Setup Python
71+
uses: actions/setup-python@v2
72+
with:
73+
python-version: ${{ matrix.python-version }}
74+
75+
- name: Install linux system dependencies
76+
run: sudo apt-get install -y libxkbcommon-x11-0
77+
78+
- name: Install Tox
79+
run: |
80+
python -m pip install --upgrade pip
81+
python -m pip install --upgrade tox tox-pip-version
82+
83+
- name: Run Tox
84+
run: xvfb-run -a -s "-screen 0 1280x1024x24" tox -e ${{ matrix.tox_env }}
85+
env:
86+
# QT_QPA_PLATFORM: offscreen
87+
ORANGE_TEST_DB_URI: postgres://postgres_user:postgres_password@localhost:5432/postgres_db|mssql://SA:sqlServerPassw0rd@localhost:1433
88+
89+
- name: Upload code coverage
90+
if: |
91+
matrix.python-version == '3.8' &&
92+
matrix.tox_env == 'orange-released'
93+
run: |
94+
pip install codecov
95+
codecov
96+
97+
test_on_macos_and_windows:
98+
runs-on: ${{ matrix.os }}
99+
timeout-minutes: 30
100+
name: ${{ matrix.name }} (${{ matrix.os }}, py${{ matrix.python-version }})
101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
os: [macos-10.15, windows-2016]
105+
python-version: [3.7, 3.8, 3.9]
106+
tox_env: [orange-released]
107+
name: [Released]
108+
include:
109+
- os: windows-2016
110+
python-version: 3.8
111+
tox_env: orange-latest
112+
name: Latest
113+
- os: macos-10.15
114+
python-version: 3.8
115+
tox_env: orange-latest
116+
name: Latest
117+
118+
steps:
119+
- uses: actions/checkout@v2
120+
- name: Set up Python ${{ matrix.python-version }}
121+
uses: actions/setup-python@v2
122+
with:
123+
python-version: ${{ matrix.python-version }}
124+
125+
- name: Install system dependencies on MacOS
126+
run: brew install libomp
127+
if: matrix.os == 'macos-10.15' || matrix.os == 'macos-11.0'
128+
129+
- name: Install dependencies
130+
run: |
131+
python -m pip install --upgrade pip
132+
python -m pip install --upgrade tox tox-pip-version
133+
134+
- name: Test with Tox
135+
run: |
136+
tox -e ${{ matrix.tox_env }}

.github/workflows/windows_workflow.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)