Skip to content

Commit

Permalink
Added python 3.11, fix deprecation warnings, fixed issue with poetry …
Browse files Browse the repository at this point in the history
…cache in workflow runs (#65)
  • Loading branch information
fpgmaas authored Nov 8, 2022
1 parent 3e197b9 commit 96b1ec9
Show file tree
Hide file tree
Showing 12 changed files with 97 additions and 81 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup-poetry-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ runs:
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
#----------------------------------------------
Expand All @@ -38,7 +38,7 @@ runs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('poetry.lock') }}

#----------------------------------------------
# install dependencies if cache does not exist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/on-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand All @@ -30,11 +30,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand All @@ -27,11 +27,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/on-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand All @@ -28,10 +28,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand All @@ -52,14 +52,14 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env

- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Build and publish
run: |
Expand All @@ -76,7 +76,7 @@ jobs:
steps:

- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
Expand Down
Loading

0 comments on commit 96b1ec9

Please sign in to comment.