Skip to content

Commit 1d64153

Browse files
authored
Doc/updated testing instructions (#58)
* Update testing instructions in developer guide * Upload openapi.json in GitHub workflow * Updated actions/checkout@v3 to v4 * Added option overwrite when uploading coverage
1 parent 5db4f4a commit 1d64153

File tree

10 files changed

+31
-16
lines changed

10 files changed

+31
-16
lines changed

.github/workflows/build-and-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515

1616
- name: SCM Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Python & Poetry Environment
2020
uses: exasol/python-toolbox/.github/actions/[email protected]

.github/workflows/check-api-outdated.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check if OpenAPI is Outdated
1+
name: Open API
22

33
on:
44
push:
@@ -16,19 +16,28 @@ on:
1616
jobs:
1717

1818
check-api-outdated:
19-
name: Check if OpenAPI Generated From JSON is Outdated
19+
name: Check API Outdated
2020
runs-on: ubuntu-latest
2121
strategy:
2222
fail-fast: false
2323

2424
steps:
2525
- name: SCM Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

28-
- name: Display branch
28+
- name: Display Branch and Download openapi.json
29+
id: download
2930
run: |
3031
git branch
31-
curl -s https://cloud.exasol.com/openapi.json
32+
F="ci-$(date "+%y%m%d-%H%M").json"
33+
curl -s https://cloud.exasol.com/openapi.json -o "$F"
34+
echo json=$F >> "$GITHUB_OUTPUT"
35+
36+
- name: Upload openapi.json
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: ${{ steps.download.outputs.json}}
40+
path: ${{ steps.download.outputs.json}}
3241

3342
- name: Setup Python & Poetry Environment
3443
uses: exasol/python-toolbox/.github/actions/[email protected]

.github/workflows/check-release-tag.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: SCM Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup Python & Poetry Environment
1717
uses: exasol/python-toolbox/.github/actions/[email protected]

.github/workflows/checks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: SCM Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

@@ -27,7 +27,7 @@ jobs:
2727

2828
steps:
2929
- name: SCM Checkout
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Setup Python & Poetry Environment
3333
uses: exasol/python-toolbox/.github/actions/[email protected]
@@ -47,7 +47,7 @@ jobs:
4747

4848
steps:
4949
- name: SCM Checkout
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151

5252
- name: Setup Python & Poetry Environment
5353
uses: exasol/python-toolbox/.github/actions/[email protected]
@@ -68,7 +68,7 @@ jobs:
6868

6969
steps:
7070
- name: SCM Checkout
71-
uses: actions/checkout@v3
71+
uses: actions/checkout@v4
7272

7373
- name: Setup Python & Poetry Environment
7474
uses: exasol/python-toolbox/.github/actions/[email protected]

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: ./.github/workflows/report.yml
2626

2727
gate-1:
28-
name: Regular
28+
name: Gate 1 - Regular CI
2929
needs: [ ci-job ]
3030
runs-on: ubuntu-latest
3131
steps:
@@ -49,7 +49,7 @@ jobs:
4949
python-version: "3.10"
5050

5151
gate-2:
52-
name: Merge
52+
name: Gate 2 - Allow Merge
5353
runs-on: ubuntu-latest
5454
needs: [ run-slow-tests ]
5555
steps:

.github/workflows/gh-pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- name: SCM Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

1414
- name: Setup Python & Poetry Environment
1515
uses: exasol/python-toolbox/.github/actions/[email protected]

.github/workflows/report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: SCM Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323

.github/workflows/run-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ jobs:
4545
with:
4646
name: .coverage
4747
path: .coverage
48+
overwrite: true

doc/changes/unreleased.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
## Refactoring
44

55
* #53: Separated long-running tests
6+
* Updated GitHub workflow to upload `openapi.json` as artifact
67

78
## Features
89

910
* #55 Added publicly callable function finding the database id from its name.
11+
12+
## Documentation
13+
14+
* Updated instructions for triggering slow tests in Developer Guide

doc/developer_guide/developer_guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Executing the integration tests requires the following environment variables to
7272

7373
Some of the test cases verify connecting to a SaaS database instance and execution will take about 20 minutes.
7474

75-
These test cases are disabled by default and will only be executed by adding a comment `[run-slow-tests]` to your pull request.
75+
The regular CI build will ask for a confirmation (aka. "review) before executing these tests.
7676

7777
## Creating a Release
7878

0 commit comments

Comments
 (0)