Skip to content

Commit c0e8ecc

Browse files
committed
ci: configure github actions
1 parent b3a74ad commit c0e8ecc

File tree

3 files changed

+62
-118
lines changed

3 files changed

+62
-118
lines changed

.github/workflows/linux_job.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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

.travis.yml

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

appveyor.yml

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

0 commit comments

Comments
 (0)