File tree Expand file tree Collapse file tree 3 files changed +62
-118
lines changed
Expand file tree Collapse file tree 3 files changed +62
-118
lines changed Original file line number Diff line number Diff line change 1+ name : Linux Job
2+
3+ on :
4+ # Trigger the workflow on push or pull request, but only for the master branch
5+ push :
6+ branches :
7+ - master
8+ pull_request :
9+ branches :
10+ - master
11+
12+ jobs :
13+ build :
14+ runs-on : ${{ matrix.os }}
15+ strategy :
16+ fail-fast : False
17+ matrix :
18+ python : [3.6, 3.7]
19+ os : [ubuntu-18.04]
20+
21+ services :
22+ postgres :
23+ image : orangedm/postgres:11
24+ env :
25+ POSTGRES_USER : postgres_user
26+ POSTGRES_PASSWORD : postgres_password
27+ POSTGRES_DB : postgres_db
28+ ports :
29+ - 5432:5432
30+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
31+
32+ SQLServer :
33+ image : mcr.microsoft.com/mssql/server:2017-latest
34+ env :
35+ ACCEPT_EULA : Y
36+ SA_PASSWORD : sqlServerPassw0rd
37+ ports :
38+ - 1433:1433
39+
40+ steps :
41+ - uses : actions/checkout@v2
42+ - name : Setup Python
43+ uses : actions/setup-python@v1
44+ with :
45+ python-version : ${{ matrix.python }}
46+
47+ - name : Install linux system dependencies
48+ run : sudo apt-get install -y libxkbcommon-x11-0 # for PyQt 5.12
49+
50+ - name : Install Tox
51+ run : pip install tox
52+
53+ - name : Run Tox
54+ run : xvfb-run -a -s "-screen 0 1280x1024x24" tox -e coverage
55+ env :
56+ ORANGE_TEST_DB_URI : postgres://postgres_user:postgres_password@localhost:5432/postgres_db|mssql://SA:sqlServerPassw0rd@localhost:1433
57+
58+ - name : Upload code coverage
59+ if : matrix.python == '3.7'
60+ run : |
61+ pip install codecov
62+ codecov
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments