Skip to content

Commit

Permalink
Update GitHub actions to remove deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Spacetown committed Oct 25, 2022
1 parent dc908ff commit 1e0a371
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
continue-on-error: ${{ startsWith(github.event.ref,'refs/heads/') }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: fetch all tags # need annotated tags for release checklist
run: |
git fetch --force --tags --depth=1
Expand All @@ -37,13 +37,13 @@ jobs:
CC: "gcc-8"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
nox --non-interactive --session build_wheel
- name: Upload distribution
if: ${{ success() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/**
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
PR_MILESTONE: "${{ github.event.pull_request.milestone.number }}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Check if PR is assigned to a milestone
if: ${{ github.event_name == 'pull_request' }}
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
CHANGELOG_ISSUE: ":issue:`${{ github.event.pull_request.number }}`"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Check if PR is mentioned in changelog
if: ${{ always() }}
run: |
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
python-version: '3.10'

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup environment
run: |
# Enable coverage for specific target configurations
Expand Down Expand Up @@ -143,11 +143,11 @@ jobs:
- name: Install ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
Expand All @@ -166,7 +166,7 @@ jobs:
nox --non-interactive --session "tests_compiler(${{ matrix.gcc }})" -- --archive_differences
- name: Upload pytest test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: diffs-${{ matrix.os }}-${{ matrix.gcc }}-${{ matrix.python-version }}
path: gcovr/tests/diff.zip
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install nox
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build Docker
run: |
python3 -m nox --non-interactive --session "docker_qa_build_compiler(${{ matrix.gcc }})"
Expand All @@ -204,7 +204,7 @@ jobs:
python3 -m nox --non-interactive --session "docker_qa_run_compiler(${{ matrix.gcc }})"
- name: Upload pytest test results
if: ${{ failure() }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: diffs-docker-${{ matrix.gcc }}
path: gcovr/tests/diff.zip

0 comments on commit 1e0a371

Please sign in to comment.