Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
contents: write
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Build Artifacts
run: poetry build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '**'
- '!v*'

jobs:

Expand All @@ -14,6 +15,7 @@ jobs:
contents: read

cd-job:
needs: [ check-tag-version-job ]
name: Continuous Delivery
uses: ./.github/workflows/build-and-publish.yml
permissions:
Expand All @@ -29,4 +31,3 @@ jobs:
contents: read
pages: write
id-token: write

4 changes: 2 additions & 2 deletions .github/workflows/check-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Check Tag Version
# make sure the pushed/created tag matched the project version
Expand Down
62 changes: 38 additions & 24 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Check Version(s)
run: poetry run -- nox -s version:check
Expand All @@ -29,10 +29,10 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Build Documentation
run: |
Expand All @@ -56,10 +56,10 @@ jobs:
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Run changelog update check
run: poetry run -- nox -s changelog:updated
Expand All @@ -75,18 +75,18 @@ jobs:
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: ${{ matrix.python-version }}

- name: Run lint
run: poetry run -- nox -s lint:code

- name: Upload Artifacts
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v5
with:
name: lint-python${{ matrix.python-version }}
path: |
Expand All @@ -106,10 +106,10 @@ jobs:

steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -128,18 +128,18 @@ jobs:

steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: ${{ matrix.python-version }}

- name: Run security linter
run: poetry run -- nox -s lint:security

- name: Upload Artifacts
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v5
with:
name: security-python${{ matrix.python-version }}
path: .security.json
Expand All @@ -152,40 +152,54 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Run format check
run: poetry run -- nox -s project:format

Build-Packages:
name: Build Package Check
needs: [ Documentation, Lint, Type-Check, Security, Format ]
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Run Distribution Check
run: poetry run -- nox -s package:check

Tests:
name: Unit-Tests (Python-${{ matrix.python-version }})
needs: [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
needs: [ Build-Packages, build-matrix ]
runs-on: ubuntu-24.04
permissions:
contents: read
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: ${{ matrix.python-version }}

- name: Run Tests and Collect Coverage
run: poetry run -- nox -s test:unit -- --coverage

- name: Upload Artifacts
uses: actions/upload-artifact@v4.6.2
uses: actions/upload-artifact@v5
with:
name: coverage-python${{ matrix.python-version }}-fast
path: .coverage
Expand All @@ -202,10 +216,10 @@ jobs:
runs-on: ubuntu-24.04
steps:

- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: ${{ matrix.python-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Build Documentation
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- id: set-matrix
run: |
Expand All @@ -37,10 +37,10 @@ jobs:
labels: int-linux-x64-4core-gpu-t4-ubuntu24.04-1
name: GPU Test
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: '${{ matrix.python_version }}'
use-cache: 'false'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- id: set-matrix
run: |
Expand All @@ -40,10 +40,10 @@ jobs:
runs-on: ubuntu-24.04
name: ${{ matrix.test-path.name }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1
with:
python-version: '${{ matrix.python_version }}'

Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/matrix-all.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/matrix-exasol.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/matrix-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
contents: read
steps:
- name: SCM Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/python-environment@1.7.4
uses: exasol/python-toolbox/.github/actions/python-environment@v1

- name: Generate matrix
run: poetry run -- nox -s matrix:python
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/merge-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Merge-Gate

on:
workflow_call:
secrets:
DOCKER_USERNAME:
required: true
DOCKER_PASSWORD:
required: true

jobs:

Expand All @@ -16,8 +11,23 @@ jobs:
permissions:
contents: read

run-slow-tests:
name: Run Slow Tests
runs-on: ubuntu-24.04
permissions:
contents: read

# Even though the environment "manual-approval" will be created automatically,
# it still needs to be configured to require interactive review.
# See project settings on GitHub (Settings / Environments / manual-approval).
environment: manual-approval
steps:
- name: Tests
run: echo "Slow tests approved"

slow-checks:
name: Slow
needs: [ run-slow-tests ]
uses: ./.github/workflows/slow-checks.yml
secrets: inherit
permissions:
Expand Down
Loading