This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (71 loc) · 2.22 KB
/
release_droid_upload_github_release_assets.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Release Droid - Upload GitHub Release Assets
on:
workflow_dispatch:
inputs:
upload_url:
description: 'Upload URL'
required: true
jobs:
check-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python 3.8 for integration-test-docker-environment
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.0
- name: Check Release
run: ./scripts/build/check_release.sh
integration_tests:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/[email protected]
with:
poetry-version: 1.1.11
- name: Poetry install
run: poetry install
- name: Poetry build
run: poetry build
- name: Checkout test environment
run: git clone https://github.com/exasol/integration-test-docker-environment.git
working-directory: ..
- name: Spawn EXASOL environemnt
run: ./start-test-env spawn-test-environment --environment-name test --database-port-forward 8888 --bucketfs-port-forward 6666 --db-mem-size 4GB
working-directory: ../integration-test-docker-environment
- name: Poetry run pytest integration tests
run: poetry run pytest tests
upload:
needs: [integration_tests, check-release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.11
- name: Build Release
run: |
bash ./scripts/build/build_release.sh
- name: Upload assets to the GitHub release draft
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: dist/*