forked from galaxyproject/planemo
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (74 loc) · 2.13 KB
/
ci.yaml
File metadata and controls
74 lines (74 loc) · 2.13 KB
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
name: Python CI
on: [push, pull_request]
env:
PLANEMO_SKIP_REDUNDANT_TESTS: 1
PLANEMO_ENABLE_POSTGRES_TESTS: 1
PLANEMO_SKIP_GALAXY_CWL_TESTS: 1
PLANEMO_TEST_WORKFLOW_RUN_PROFILE: 1
PGPASSWORD: postgres
PGHOST: localhost
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.6']
tox-action:
- lint
- lint_docs
- quick
- unit
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@v1
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-python@v1
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
pip install tox coveralls
- 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@v1
with:
fetch-depth: 1
submodules: true
- uses: actions/setup-python@v1
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.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@v1.0.0a0
with:
password: ${{ secrets.pypi_password }}