8000 Update version of pipeline actions by Spacetown · Pull Request #880 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update version of pipeline actions #880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:
jobs:

release-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

continue-on-error: ${{ startsWith(github.event.ref,'refs/heads/') }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: fetch all tags # need annotated tags for release checklist
run: |
git fetch --force --tags --depth=1
Expand All @@ -29,22 +29,22 @@ jobs:
admin/release_checklist $EXTRA_CHECKLIST_ARGS 7.0+main

deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: release-check

env:
FORCE_COLOR: "1"
PYTHON_VERSION: "3.8"
CC: "gcc-8"
CC: "gcc-11"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/test.yml
10000
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@v3
- uses: actions/checkout@v4
- 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@v3
- uses: actions/checkout@v4
- name: Check if PR is mentioned in changelog
if: ${{ always() }}
run: |
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
python-version: '3.11'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: |
# Enable coverage for specific target configurations
Expand Down Expand Up @@ -150,11 +150,11 @@ jobs:
libxml2-utils
sudo apt-get clean
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
Expand All @@ -180,11 +180,13 @@ jobs:
path: gcovr/tests/diff.zip
- name: Upload coverage to Codecov
if: ${{ env.USE_COVERAGE == 'true' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
disable_search: true
plugins: pycoverage
files: ./coverage.xml
name: ${{ matrix.os }}-${{ matrix.gcc }}
verbose: true
Expand Down Expand Up @@ -229,7 +231,7 @@ jobs:
run: |
python -m pip install --upgrade pip
python3 -m pip install nox
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Docker
run: |
python3 -m nox --non-interactive --session "docker_build_compiler(${{ matrix.gcc }})"
Expand All @@ -241,21 +243,24 @@ jobs:
python3 -m nox --non-interactive --session "docker_run_compiler(${{ matrix.gcc }})" -- --session tests
- name: Upload coverage to Codecov
if: ${{ env.USE_COVERAGE == 'true' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
disable_search: true
plugins: pycoverage
files: ./coverage.xml
name: docker-${{ matrix.gcc }}
verbose: true
- name: Upload LCOV coverage to Codecov
if: ${{ matrix.gcc == 'clang-13' }}
uses: codecov/codecov-action@v3
if: ${{ (matrix.gcc == 'gcc-5') || (matrix.gcc == 'clang-10') }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: true
disable_search: true
files: ./gcovr/tests/nested/reference/${{ matrix.gcc }}/coverage.lcov
name: docker-${{ matrix.gcc }}-lcov
verbose: true
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Documentation:
Internal changes:

- Improve Dockerfile for faster rebuilds by using cache. (:issue:`878`)
- Fix deprecation warnings from GitHub actions. (:issue:`880`)

7.0 (25 January 2024)
---------------------
Expand Down
0