-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (55 loc) · 1.4 KB
/
publish.yml
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
name: Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
services:
db2:
image: ibmcom/db2:11.5.7.0
ports:
- 50000:50000
env:
LICENSE: accept
DB2INSTANCE: db2inst1
DB2INST1_PASSWORD: ibm123
DBNAME: testdb
BLU: false
ENABLE_ORACLE_COMPATIBILITY: false
UPDATEAVAIL: NO
TO_CREATE_SAMPLEDB: false
REPODB: false
IS_OSXFS: false
PERSISTENT_HOME: false
HADR_ENABLED: false
options: >-
--cap-add IPC_LOCK
--cap-add IPC_OWNER
--name="db2inst1"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3
poetry install
- name: Wait some time for DB2
uses: jakejarvis/wait-action@master
with:
time: '5m'
- name: Run tests
run: poetry run tox --parallel 2
- name: Build wheels
run: |
poetry version $(git tag --points-at HEAD)
poetry build
- name: Upload
env:
USERNAME: __token__
PASSWORD: ${{ secrets.PYPI_PROD_TOKEN }}
run: poetry publish --username=$USERNAME --password=$PASSWORD