Skip to content

Commit b44a856

Browse files
ci
1 parent 86502a4 commit b44a856

File tree

5 files changed

+29
-27
lines changed

5 files changed

+29
-27
lines changed

.github/actions/prepare-poetry/action.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
---
66

77
name: Prepare Python and Poetry
8-
Description: Install Python, Poetry and dev dependencies, cached for speed
8+
description: Install Python, Poetry and dev dependencies, cached for speed
99

1010
inputs:
1111
python-version:
@@ -18,38 +18,40 @@ runs:
1818
steps:
1919
- name: Set up Python
2020
id: setup-python
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ inputs.python-version }}
2424

2525
- name: Load cached Poetry installation
26-
uses: actions/cache@v3
26+
uses: actions/cache@v4
2727
with:
2828
path: ~/.local # the path depends on the OS
29-
key: poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-0 # increment to reset cache
29+
key: poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-4 # increment to reset cache
3030

3131
- name: Install Poetry
3232
uses: snok/install-poetry@v1
3333
with:
3434
version: 1.5.1
3535
virtualenvs-create: true
36-
virtualenvs-in-project: true
36+
virtualenvs-in-project: false
3737

3838
- name: Install Poetry Plugins
3939
run: |
4040
python -m pip install --upgrade pip
4141
pip install poetry-dynamic-versioning
4242
shell: bash
43-
4443
- name: Load cached venv
4544
id: cached-poetry-dependencies
46-
uses: actions/cache@v3
45+
uses: actions/cache@v4
4746
with:
4847
path: .venv
4948
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-1
50-
49+
50+
- name: Install Poetry Plugins
51+
run: poetry self add "poetry-dynamic-versioning[plugin]"
52+
shell: bash
53+
5154
- name: Install dependencies and library
5255
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
5356
run: poetry install --no-interaction
5457
shell: bash
55-

.github/workflows/ci-publish-test-repo.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818

1919
- name: Checkout code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323

@@ -37,7 +37,7 @@ jobs:
3737
poetry build
3838
3939
- name: Save build artifacts
40-
uses: actions/upload-artifact@v2
40+
uses: actions/upload-artifact@v4
4141
with:
4242
name: dist-artifact
4343
path: dist/
@@ -54,12 +54,12 @@ jobs:
5454
python-version: '3.9'
5555

5656
- name: Checkout code
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5858
with:
5959
fetch-depth: 0
6060

6161
- name: Get build artifacts
62-
uses: actions/download-artifact@v3
62+
uses: actions/download-artifact@v4
6363
with:
6464
name: dist-artifact
6565
path: dist/
@@ -91,12 +91,12 @@ jobs:
9191

9292
# Retrieve the code and GIT history so that poetry-dynamic-versioning knows which version to upload
9393
- name: Checkout code
94-
uses: actions/checkout@v3
94+
uses: actions/checkout@v4
9595
with:
9696
fetch-depth: 0
9797

9898
- name: Get build artifacts
99-
uses: actions/download-artifact@v3
99+
uses: actions/download-artifact@v4
100100
with:
101101
name: dist-artifact
102102
path: dist/

.github/workflows/ci-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818

1919
- name: Checkout code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323

@@ -54,12 +54,12 @@ jobs:
5454
python-version: '3.9'
5555

5656
- name: Checkout code
57-
uses: actions/checkout@v3
57+
uses: actions/checkout@v4
5858
with:
5959
fetch-depth: 0
6060

6161
- name: Get build artifacts
62-
uses: actions/download-artifact@v3
62+
uses: actions/download-artifact@v4
6363
with:
6464
name: dist-artifact
6565
path: dist/
@@ -91,12 +91,12 @@ jobs:
9191

9292
# Retrieve the code and GIT history so that poetry-dynamic-versioning knows which version to upload
9393
- name: Checkout code
94-
uses: actions/checkout@v3
94+
uses: actions/checkout@v4
9595
with:
9696
fetch-depth: 0
9797

9898
- name: Get build artifacts
99-
uses: actions/download-artifact@v3
99+
uses: actions/download-artifact@v4
100100
with:
101101
name: dist-artifact
102102
path: dist/

.github/workflows/ci-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818

1919
- name: Checkout code
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Install dependencies
2323
uses: ./.github/actions/prepare-poetry
@@ -57,7 +57,7 @@ jobs:
5757
python-version: ["3.9", "3.10"]
5858

5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161

6262
- name: Install dependencies
6363
uses: ./.github/actions/prepare-poetry
@@ -69,13 +69,13 @@ jobs:
6969

7070
- name: Upload pytest artifacts
7171
if: ${{ always() }}
72-
uses: actions/upload-artifact@v3
72+
uses: actions/upload-artifact@v4
7373
with:
7474
name: Unit Test Results (Python ${{ matrix.python-version }})
7575
path: pytest.xml
7676

7777
- name: Upload coverage to Codecov
78-
uses: codecov/codecov-action@v3
78+
uses: codecov/codecov-action@v5
7979
with:
8080
token: ${{ secrets.CODECOV_TOKEN }}
8181
files: coverage.xml

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232

3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
# Initializes the CodeQL tools for scanning.
3838
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@v2
39+
uses: github/codeql-action/init@v3
4040
with:
4141
languages: ${{ matrix.language }}
4242
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -45,4 +45,4 @@ jobs:
4545
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4646

4747
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@v2
48+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)