-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from ThomasMarwitzQC/refactor
Refactor
- Loading branch information
Showing
37 changed files
with
223 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,12 @@ jobs: | |
name: Unit tests - ${{ matrix.PYTHON_VERSION }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
contents: "read" | ||
id-token: "write" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11"] | ||
PYTHON_VERSION: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
services: | ||
postgres: | ||
image: postgres:11 | ||
|
@@ -45,12 +45,12 @@ jobs: | |
continue-on-error: true | ||
- id: google_auth | ||
if: steps.check-id-token.outcome == 'success' | ||
name: 'Authenticate to Google Cloud' | ||
name: "Authenticate to Google Cloud" | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
workload_identity_provider: 'projects/498651197656/locations/global/workloadIdentityPools/qc-minimalkv-gh-actions-pool/providers/github-actions-provider' | ||
service_account: '[email protected]' | ||
token_format: 'access_token' | ||
workload_identity_provider: "projects/498651197656/locations/global/workloadIdentityPools/qc-minimalkv-gh-actions-pool/providers/github-actions-provider" | ||
service_account: "[email protected]" | ||
token_format: "access_token" | ||
- name: Run the unittests | ||
shell: bash -x -l {0} | ||
run: | | ||
|
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: pre-commit autoupdate | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 6 4 * *" | ||
|
||
defaults: | ||
run: | ||
shell: bash -el {0} | ||
|
||
jobs: | ||
check_update: | ||
name: Check if newer version exists | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
# We need to checkout with SSH here to have actions run on the PR. | ||
with: | ||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
- name: Set up Conda env | ||
uses: mamba-org/setup-micromamba@db1df3ba9e07ea86f759e98b575c002747e9e757 | ||
with: | ||
environment-name: pre-commit | ||
create-args: >- | ||
-c | ||
conda-forge | ||
pre-commit | ||
mamba | ||
- name: Update pre-commit hooks and run | ||
id: versions | ||
env: | ||
PRE_COMMIT_USE_MAMBA: 1 | ||
run: | | ||
pre-commit autoupdate | ||
pre-commit run -a || true | ||
- uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 | ||
with: | ||
commit-message: "Auto-update pre-commit hooks" | ||
title: "Auto-update pre-commit hooks" | ||
body: | | ||
New versions of the used pre-commit hooks were detected. | ||
This PR updates them to the latest and already ran `pre-commit run -a` for you to fix any changes in formatting. | ||
branch: pre-commit-autoupdate | ||
delete-branch: true |
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 |
---|---|---|
|
@@ -10,5 +10,5 @@ conda: | |
|
||
python: | ||
install: | ||
- method: setuptools | ||
- method: pip | ||
path: . |
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
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
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
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
Oops, something went wrong.