-
Notifications
You must be signed in to change notification settings - Fork 86
103 lines (103 loc) · 3.21 KB
/
ci.yaml
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
name: Python CI
on: [push, pull_request]
env:
PLANEMO_ENABLE_POSTGRES_TESTS: 1
PLANEMO_SKIP_GALAXY_CWL_TESTS: 1
PLANEMO_TEST_WORKFLOW_RUN_PROFILE: 1
PGPASSWORD: postgres
PGHOST: localhost
GIT_AUTHOR_NAME: planemo
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: planemo
GIT_COMMITTER_EMAIL: [email protected]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 100
strategy:
fail-fast: false
matrix:
python-version: ['3.7']
tox-action:
- lint
- lint_docs
- mypy
- unit-quick
#- unit-diagnostic-servebasic
#- unit-diagnostic-servebasic-gx-2005
#- unit-diagnostic-servebasic-gx-master
- unit-diagnostic-servebasic-gx-dev
#- unit-diagnostic-servetraining
#- unit-diagnostic-servecmd
#- unit-diagnostic-trainingwfcmd
- unit-nonredundant-noclientbuild-noshed-gx-2105
- unit-nonredundant-noclientbuild-noshed-gx-2109
- unit-nonredundant-noclientbuild-noshed-gx-dev
- unit-nonredundant-noclientbuild-noshed-nogx
- unit-diagnostic-serveclientcmd
include:
- python-version: '3.11'
tox-action: lint
- python-version: '3.11'
tox-action: mypy
- python-version: '3.11'
tox-action: unit-quick
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test psql
run: |
psql --tuples-only --username postgres -P pager=off --list
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install tox coveralls
- name: Checkout system space
run: |
df
- name: Test with tox
run: |
TOXENV=$(echo $TOXENV | sed 's/\.//') tox
env:
TOXENV: py${{ matrix.python-version }}-${{ matrix.tox-action }}
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-node@v3
with:
node-version: '18.12.1'
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade twine wheel
- name: Create and check packages
run: |
make dist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}