Skip to content

Commit 3eff45d

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

17 files changed

+136
-346
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ CURRENT_COMMIT=$(git rev-parse HEAD)
8888
if [ "$ARG1" ]; then
8989
PREVIOUS_COMMIT=$(git merge-base HEAD "$ARG1")
9090
else
91-
PREVIOUS_COMMIT=$(git show --pretty=raw HEAD |
92-
awk '/^parent /{ print $2; exit }')
91+
PREVIOUS_COMMIT=$(git show -s --pretty=%P "$CURRENT_COMMIT")
92+
# PREVIOUS_COMMIT=$(git show --pretty=raw HEAD | awk '/^parent /{ print $2; exit }')
9393
fi
9494

9595
echo

.github/workflows/doc_job.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Documentation
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.7]
19+
os: [ubuntu-18.04]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Setup Python
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python }}
27+
28+
- name: Install linux system dependencies
29+
run: sudo apt-get install -y libxkbcommon-x11-0
30+
31+
- name: Install Tox
32+
run: pip install tox
33+
34+
- name: Build documentation
35+
run: xvfb-run -a -s "-screen 0 1280x1024x24" tox -e build_doc

.github/workflows/lint_job.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint 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.7]
19+
os: [ubuntu-18.04]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
fetch-depth: '2'
25+
- name: Setup Python
26+
uses: actions/setup-python@v1
27+
with:
28+
python-version: ${{ matrix.python }}
29+
30+
- name: Install Tox
31+
run: pip install tox
32+
33+
- name: Run Pylint
34+
run: tox -e pylint-ci

.github/workflows/linux_job.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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
63+
env:
64+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.travis.yml

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

.travis/install_mssql.sh

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

.travis/install_orange.sh

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

.travis/install_postgres.sh

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

.travis/install_pyqt.sh

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

.travis/stage_after_success.sh

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

0 commit comments

Comments
 (0)