Skip to content

Commit 9cedf76

Browse files
authored
Merge pull request #104 from smkent/actions
Update Github action versions
2 parents 9e52fa1 + c85a1a5 commit 9cedf76

7 files changed

Lines changed: 16 additions & 12 deletions

File tree

β€Ž.github/workflows/actions/python-poetry/action.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ runs:
4141
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
4242
4343
- name: πŸͺ Cache pre-commit hooks
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: ~/.cache/pre-commit
4747
key: "pre-commit-${{ runner.os }}-python\

β€Ž.github/workflows/cd.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: πŸ’Ύ Check out repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: πŸ“œ Fetch full repository history for unit tests
2828
run: git fetch --unshallow

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ matrix.os }}-latest
3232
steps:
3333
- name: πŸ’Ύ Check out repository
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- name: πŸ“œ Fetch full repository history for unit tests
3737
run: git fetch --unshallow
@@ -46,13 +46,15 @@ jobs:
4646
run: poetry run poe test
4747

4848
- name: πŸš’ Create test summary
49-
uses: test-summary/action@v1
49+
uses: test-summary/action@v2
5050
if: success() || failure()
5151
with:
5252
paths: ./.pytest_results.xml
5353

5454
- name: πŸ“Š Upload coverage to Codecov
55-
uses: codecov/codecov-action@v3
55+
uses: codecov/codecov-action@v4
56+
env:
57+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5658
if: ${{ env.ENABLE_COVERAGE == 'true' }}
5759
with:
5860
fail_ci_if_error: true

β€Ž{{cookiecutter.project_name}}/.github/workflows/actions/python-poetry/action.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
python3 -m pip install --upgrade requests
2121
2222
- name: 🐍 Set up Python
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
id: setuppy
2525
with:
2626
python-version: ${{ "{{" }} inputs.python_version }}
@@ -41,7 +41,7 @@ runs:
4141
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
4242
4343
- name: πŸͺ Cache pre-commit hooks
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: ~/.cache/pre-commit
4747
key: "pre-commit-${{ "{{" }} runner.os }}-python\

β€Ž{{cookiecutter.project_name}}/.github/workflows/cd.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: πŸ’Ύ Check out repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
- name: 🐍 Set up Python project with Poetry
2828
uses: ./.github/workflows/actions/python-poetry

β€Ž{{cookiecutter.project_name}}/.github/workflows/ci.ymlβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
runs-on: ${{ "{{" }} matrix.os }}-latest
3232
steps:
3333
- name: πŸ’Ύ Check out repository
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535

3636
- name: 🐍 Set up Python project with Poetry
3737
uses: ./.github/workflows/actions/python-poetry
@@ -43,13 +43,15 @@ jobs:
4343
run: poetry run poe test
4444

4545
- name: πŸš’ Create test summary
46-
uses: test-summary/action@v1
46+
uses: test-summary/action@v2
4747
if: success() || failure()
4848
with:
4949
paths: ./.pytest_results.xml
5050

5151
- name: πŸ“Š Upload coverage to Codecov
52-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v4
53+
env:
54+
CODECOV_TOKEN: ${{ "${{" }} secrets.CODECOV_TOKEN }}
5355
if: ${{ "{{" }} env.ENABLE_COVERAGE == 'true' }}
5456
with:
5557
fail_ci_if_error: true

β€Ž{{cookiecutter.project_name}}/.github/workflows/container.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
steps:
2727
- name: πŸ’Ύ Check out repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: πŸ”‘ Log in to the container registry
3131
uses: docker/login-action@v2.1.0

0 commit comments

Comments
Β (0)