Skip to content

Commit

Permalink
Merge pull request #763 from TeoZosa/template/deps/bump-github-actions
Browse files Browse the repository at this point in the history
👷 ⬆️ Bump template GitHub Actions
  • Loading branch information
TeoZosa authored Sep 20, 2022
2 parents c67b078 + 1e55de3 commit f0c86bb
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v2.3.3
- uses: ahmadnassri/action-dependabot-auto-merge@v2.4
- uses: actions/checkout@v3.0.2
- uses: ahmadnassri/action-dependabot-auto-merge@v2.6
with:
target: minor
github-token: {{ "${{ secrets.AUTO_MERGE_DEPENDABOT_TOKEN }}" }}
34 changes: 17 additions & 17 deletions {{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -49,7 +49,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -108,7 +108,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand All @@ -126,7 +126,7 @@ jobs:
name: Semgrep
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Disable Git LFS
run: |
Expand Down Expand Up @@ -154,10 +154,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -180,7 +180,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand All @@ -200,7 +200,7 @@ jobs:
- name: Upload coverage to Codecov
if: "contains(matrix.os, env.USING_COVERAGE_OS) &&
contains(matrix.python-version, env.USING_COVERAGE_PY_VER)"
uses: "codecov/codecov-action@v2.1.0"
uses: "codecov/codecov-action@v3.1.0"
with:
file: ./.tox/coverage.xml
fail_ci_if_error: true
Expand All @@ -215,10 +215,10 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -235,7 +235,7 @@ jobs:
- name: Load cached venv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.venv
Expand Down Expand Up @@ -266,12 +266,12 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2
with:
lfs: true

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -293,7 +293,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/.github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v3.1.1
uses: crazy-max/ghaction-github-labeler@v4.0.0
with:
skip-delete: true
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
# yamllint disable-line rule:braces
python-version: {{ "${{ matrix.python-version }}" }}
Expand All @@ -52,7 +52,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand All @@ -79,7 +79,7 @@ jobs:
echo "::set-output name=target_output_dir::${NAMESPACED_TARGET_OUTPUT_DIR}"
- name: Store the environment-specific benchmarks
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.0
with:
name: benchmark-data-files
path: .benchmarks
Expand Down Expand Up @@ -112,10 +112,10 @@ jobs:
PY_COLORS: 1
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: "3.9"

Expand All @@ -129,7 +129,7 @@ jobs:
pip install pytest-benchmark[histogram]
- name: Download the benchmarks
uses: actions/download-artifact@v2.0.10
uses: actions/download-artifact@v3.0.0
with:
name: benchmark-data-files
path: .benchmarks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v3.0.2
with:
persist-credentials: false # required by JamesIves/github-pages-deploy-action
fetch-depth: 0 # required by Log4brains to work correctly (needs the whole Git history)
- name: Install Node
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v3.4.1
with:
node-version: "14"
- name: Install and Build Log4brains
Expand All @@ -39,7 +39,7 @@ jobs:
--out "${BUILD_DIR}/adl"
touch "${BUILD_DIR}/.nojekyll"
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
uses: JamesIves/github-pages-deploy-action@v4.4.0
with:
branch: gh-pages
# yamllint disable-line rule:braces
Expand Down
42 changes: 21 additions & 21 deletions {{cookiecutter.project_slug}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
dev-version: {{ "${{ steps.bump-dev-version.outputs.version }}" }}
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2
with:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: "3.9"

Expand Down Expand Up @@ -84,10 +84,10 @@ jobs:
package-version: {{ "${{ steps.log-package-version.outputs.version }}" }}
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand All @@ -108,7 +108,7 @@ jobs:
- name: Load cached tox testenv(s) (if they exist)
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3.0.1
with:
path: |
.tox
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
make package
- name: Store the binary wheel
uses: actions/upload-artifact@v2.2.4
uses: actions/upload-artifact@v3.1.0
with:
name: python-package-distributions
path: dist
Expand All @@ -152,10 +152,10 @@ jobs:
package-version: {{ "${{ needs.package-build.outputs.package-version }}" }}
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: "3.9"

Expand All @@ -165,21 +165,21 @@ jobs:
pip --version
- name: Download the binary wheels
uses: actions/download-artifact@v2.0.10
uses: actions/download-artifact@v3.0.0
with:
name: python-package-distributions
path: dist

- name: Publish packages on PyPI
if: "! needs.package-build.outputs.is-test-package"
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: {{ "${{ secrets.PYPI_TOKEN }}" }} # pragma: allowlist secret

- name: Publish packages on TestPyPI
if: "needs.package-build.outputs.is-test-package"
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
user: __token__
password: {{ "${{ secrets.TEST_PYPI_TOKEN }}" }} # pragma: allowlist secret
Expand All @@ -198,10 +198,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: {{ "${{ matrix.python-version }}" }}

Expand Down Expand Up @@ -238,10 +238,10 @@ jobs:
needs: get-tag-xor-dev-version
steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Set up Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.2.0
with:
python-version: "3.9"

Expand All @@ -257,13 +257,13 @@ jobs:
# Docker build/push job ----------------------
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: {{ "${{ secrets.DOCKERHUB_USERNAME }}" }}
password: {{ "${{ secrets.DOCKERHUB_TOKEN }}" }}
Expand All @@ -287,7 +287,7 @@ jobs:
- name: Build and push container image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: {{ "${{ steps.container-image-metadata.outputs.tagged_images }}" }}
Expand All @@ -311,10 +311,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3.0.2

- name: Publish the release notes
uses: release-drafter/release-drafter@v5.15.0
uses: release-drafter/release-drafter@v5.21.0
with:
publish: {{ "${{ needs.get-tag-xor-dev-version.outputs.tag != '' }}" }}
# Annotated tag to associate with the current commit
Expand Down

0 comments on commit f0c86bb

Please sign in to comment.