Skip to content

Commit

Permalink
Upgrade to python-toolbox 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Nov 18, 2024
1 parent cd3d14b commit 148fd58
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

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

- name: Build Artifacts
run: poetry build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4

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

- name: Check Tag Version
# make sure the pushed/created tag matched the project version
Expand Down
45 changes: 33 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fetch-depth: 0

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

- name: Check Version(s)
run: |
Expand All @@ -35,11 +35,11 @@ jobs:
uses: actions/checkout@v4

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

- name: Build Documentation
run: |
poetry run python -m nox -s build-docs
poetry run python -m nox -s docs:build
Lint:
name: Linting (Python-${{ matrix.python-version }})
Expand All @@ -55,12 +55,12 @@ jobs:
uses: actions/checkout@v4

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

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

- name: Upload Artifacts
uses: actions/[email protected]
Expand All @@ -69,26 +69,47 @@ jobs:
path: .lint.txt
include-hidden-files: true

Type-Check:
name: Type Checking (Python-${{ matrix.python-version }})
needs: [ Version-Check ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

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

- name: Setup Python & Poetry Environment
uses: exasol/python-toolbox/.github/actions/[email protected]
with:
python-version: ${{ matrix.python-version }}

- name: Run type-check
run: poetry run nox -s lint:typing

Security:
name: Security Checks (Python-${{ matrix.python-version }})
needs: [ Version-Check ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: [ "3.9", "3.10", "3.11" ]

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

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

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

- name: Upload Artifacts
uses: actions/[email protected]
Expand All @@ -99,27 +120,27 @@ jobs:

Tests:
name: Tests (Python-${{ matrix.python-version }}, Exasol-${{ matrix.exasol-version}})
needs: [ Documentation, Lint, Security ]
needs: [ Documentation, Lint, Type-Check, Security ]
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ALTERNATIVE_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11"]
exasol-version: ["7.1.9"]

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

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

- name: Run Tests and Compute Coverage
run: poetry run nox -s coverage -- -- --db-version ${{ matrix.exasol-version }}
run: poetry run nox -s test:coverage -- -- --db-version ${{ matrix.exasol-version }}

- name: Upload Artifacts
uses: actions/[email protected]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ jobs:
steps:
- name: SCM Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

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

- name: Build Documentation
run: |
poetry run python -m nox -s build-docs
poetry run sphinx-multiversion doc/ .html-documentation
- name: Deploy
uses: JamesIves/[email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

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

- name: Download Artifacts
uses: actions/[email protected]
Expand All @@ -35,7 +35,7 @@ jobs:
cp security-python3.9/.security.json ../
- name: Generate Report
run: poetry run nox -s report -- -- --format json | tee metrics.json
run: poetry run nox -s project:report -- -- --format json | tee metrics.json

- name: Upload Artifacts
uses: actions/[email protected]
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Generate GitHub Summary
run: |
echo -e "# Summary\n" >> $GITHUB_STEP_SUMMARY
poetry run nox -s report -- -- --format markdown >> $GITHUB_STEP_SUMMARY
poetry run nox -s project:report -- -- --format markdown >> $GITHUB_STEP_SUMMARY
echo -e "\n\n# Coverage\n" >> $GITHUB_STEP_SUMMARY
poetry run coverage report -- --format markdown >> $GITHUB_STEP_SUMMARY
echo -e "\n\n# Static Code Analysis\n" >> $GITHUB_STEP_SUMMARY
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
from exasol.toolbox.nox.tasks import * # pylint: disable=wildcard-import disable=unused-wildcard-import

# default actions to be run if nothing is explicitly specified with the -s option
nox.options.sessions = ["fix"]
nox.options.sessions = ["project:fix"]

0 comments on commit 148fd58

Please sign in to comment.