-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|
@@ -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 }}) | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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] | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters