diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 2983485..511f160 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -14,7 +14,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 diff --git a/.github/workflows/check-api-outdated.yml b/.github/workflows/check-api-outdated.yml index f5bf956..c1d6a1a 100644 --- a/.github/workflows/check-api-outdated.yml +++ b/.github/workflows/check-api-outdated.yml @@ -1,4 +1,4 @@ -name: Check if OpenAPI is Outdated +name: Open API on: push: @@ -16,19 +16,28 @@ on: jobs: check-api-outdated: - name: Check if OpenAPI Generated From JSON is Outdated + name: Check API Outdated runs-on: ubuntu-latest strategy: fail-fast: false steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Display branch + - name: Display Branch and Download openapi.json + id: download run: | git branch - curl -s https://cloud.exasol.com/openapi.json + F="ci-$(date "+%y%m%d-%H%M").json" + curl -s https://cloud.exasol.com/openapi.json -o "$F" + echo json=$F >> "$GITHUB_OUTPUT" + + - name: Upload openapi.json + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.download.outputs.json}} + path: ${{ steps.download.outputs.json}} - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.8.0 diff --git a/.github/workflows/check-release-tag.yml b/.github/workflows/check-release-tag.yml index e3a2380..89c1a66 100644 --- a/.github/workflows/check-release-tag.yml +++ b/.github/workflows/check-release-tag.yml @@ -11,7 +11,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ccb4921..995729d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -10,7 +10,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -27,7 +27,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 @@ -47,7 +47,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 @@ -68,7 +68,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6363e2d..7b46513 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: uses: ./.github/workflows/report.yml gate-1: - name: Regular + name: Gate 1 - Regular CI needs: [ ci-job ] runs-on: ubuntu-latest steps: @@ -49,7 +49,7 @@ jobs: python-version: "3.10" gate-2: - name: Merge + name: Gate 2 - Allow Merge runs-on: ubuntu-latest needs: [ run-slow-tests ] steps: diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ce67f4f..673c823 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,7 +9,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python & Poetry Environment uses: exasol/python-toolbox/.github/actions/python-environment@0.9.0 diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml index 20f2515..8c02457 100644 --- a/.github/workflows/report.yml +++ b/.github/workflows/report.yml @@ -17,7 +17,7 @@ jobs: steps: - name: SCM Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 26f0c74..f4e17f6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -45,3 +45,4 @@ jobs: with: name: .coverage path: .coverage + overwrite: true diff --git a/doc/changes/unreleased.md b/doc/changes/unreleased.md index 7f5653f..41fe11f 100644 --- a/doc/changes/unreleased.md +++ b/doc/changes/unreleased.md @@ -3,7 +3,12 @@ ## Refactoring * #53: Separated long-running tests +* Updated GitHub workflow to upload `openapi.json` as artifact ## Features * #55 Added publicly callable function finding the database id from its name. + +## Documentation + +* Updated instructions for triggering slow tests in Developer Guide diff --git a/doc/developer_guide/developer_guide.md b/doc/developer_guide/developer_guide.md index bbe2849..5e55880 100644 --- a/doc/developer_guide/developer_guide.md +++ b/doc/developer_guide/developer_guide.md @@ -72,7 +72,7 @@ Executing the integration tests requires the following environment variables to Some of the test cases verify connecting to a SaaS database instance and execution will take about 20 minutes. -These test cases are disabled by default and will only be executed by adding a comment `[run-slow-tests]` to your pull request. +The regular CI build will ask for a confirmation (aka. "review) before executing these tests. ## Creating a Release