Skip to content

Commit

Permalink
Update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed May 17, 2024
1 parent 5365830 commit a9901de
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ 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.10.0
uses: exasol/python-toolbox/.github/actions/python-environment@0.12.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@v3

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

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

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

- name: Check Version(s)
run: poetry run version-check exasol/bucketfs/version.py
run: poetry run version-check <<Add path to version.py file>>

build-documentation-job:
name: Build Documentation
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Build Documentation
run: |
Expand All @@ -50,13 +50,19 @@ jobs:
uses: actions/checkout@v3

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

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

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: .lint.txt
path: .lint.txt

type-check-job:
name: Type Checking (Python-${{ matrix.python-version }})
needs: [version-check-job]
Expand All @@ -71,7 +77,7 @@ jobs:
uses: actions/checkout@v3

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

Expand All @@ -93,9 +99,16 @@ jobs:
uses: actions/checkout@v3

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

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

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: .coverage
path: .coverage

2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v3

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

- name: Build Documentation
run: |
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
fetch-depth: 0

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

- name: Download Artifacts
uses: actions/download-artifact@v3
Expand All @@ -31,9 +31,8 @@ jobs:
- name: Copy Artifacts into Root Folder
working-directory: ./artifacts
run: |
ls -al
cp .artifacts/.coverage ../
cp .artifacts/.lint.txt ../
cp .coverage/.coverage ../
cp .lint.txt/.lint.txt ../
- name: Generate Report
run: poetry run nox -s report -- -- --format json | tee metrics.json
Expand Down

0 comments on commit a9901de

Please sign in to comment.