Skip to content

Commit

Permalink
Merge pull request #104 from smkent/actions
Browse files Browse the repository at this point in the history
Update Github action versions
  • Loading branch information
smkent authored Jul 9, 2024
2 parents 9e52fa1 + c85a1a5 commit 9cedf76
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actions/python-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
- name: πŸͺ Cache pre-commit hooks
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: "pre-commit-${{ runner.os }}-python\
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: πŸ’Ύ Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: πŸ“œ Fetch full repository history for unit tests
run: git fetch --unshallow
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ${{ matrix.os }}-latest
steps:
- name: πŸ’Ύ Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: πŸš’ Create test summary
uses: test-summary/action@v1
uses: test-summary/action@v2
if: success() || failure()
with:
paths: ./.pytest_results.xml

- name: πŸ“Š Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ env.ENABLE_COVERAGE == 'true' }}
with:
fail_ci_if_error: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
python3 -m pip install --upgrade requests
- name: 🐍 Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
id: setuppy
with:
python-version: ${{ "{{" }} inputs.python_version }}
Expand All @@ -41,7 +41,7 @@ runs:
echo "PROJECT_VERSION=${PROJECT_VERSION}" >> $GITHUB_ENV
- name: πŸͺ Cache pre-commit hooks
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: "pre-commit-${{ "{{" }} runner.os }}-python\
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: πŸ’Ύ Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🐍 Set up Python project with Poetry
uses: ./.github/workflows/actions/python-poetry
Expand Down
8 changes: 5 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ${{ "{{" }} matrix.os }}-latest
steps:
- name: πŸ’Ύ Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: πŸš’ Create test summary
uses: test-summary/action@v1
uses: test-summary/action@v2
if: success() || failure()
with:
paths: ./.pytest_results.xml

- name: πŸ“Š Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ "${{" }} secrets.CODECOV_TOKEN }}
if: ${{ "{{" }} env.ENABLE_COVERAGE == 'true' }}
with:
fail_ci_if_error: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: πŸ’Ύ Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

0 comments on commit 9cedf76

Please sign in to comment.