From 9e13ece98c9c423003d6e017c37cf1d280d77fb2 Mon Sep 17 00:00:00 2001 From: Daniel Dale Date: Fri, 18 Oct 2024 09:53:47 -0700 Subject: [PATCH] bump old action versions, add use of CODECOV token for cpu coverage --- .github/workflows/ci_schema.yml | 2 +- .github/workflows/ci_test-full.yml | 8 +++++--- .github/workflows/code-checks.yml | 4 ++-- .github/workflows/release-docker.yml | 4 ++-- .github/workflows/release-pypi.yml | 10 +++++----- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci_schema.yml b/.github/workflows/ci_schema.yml index ad5b070..da59896 100644 --- a/.github/workflows/ci_schema.yml +++ b/.github/workflows/ci_schema.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install pkg run: | diff --git a/.github/workflows/ci_test-full.yml b/.github/workflows/ci_test-full.yml index 9e24162..d14c3ae 100644 --- a/.github/workflows/ci_test-full.yml +++ b/.github/workflows/ci_test-full.yml @@ -61,10 +61,10 @@ jobs: # https://github.com/actions/runner-images/issues/9918#issuecomment-2149336099 DISABLE_MPS: ${{ matrix.os == 'macOS-14' && '1' || '0' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -85,7 +85,7 @@ jobs: # https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow - name: Get pip cache dir id: pip-cache - run: echo "::set-output name=dir::$(pip cache dir)" + run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - name: pip cache uses: actions/cache@v4 @@ -146,6 +146,8 @@ jobs: coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} with: file: coverage.xml flags: cpu,pytest,python${{ matrix.python-version }} diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 9bdbc3f..6f43c3c 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -13,8 +13,8 @@ jobs: mypy: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install dependencies diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index c84e147..6f6d08c 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -36,7 +36,7 @@ jobs: pl_version: ["2.5"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Log in to Docker Hub uses: docker/login-action@v1 @@ -46,7 +46,7 @@ jobs: - name: Get release version id: get_version - run: echo "::set-output name=RELEASE_VERSION::$(echo ${GITHUB_REF##*/v})" + run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF##*/v})" >> $GITHUB_OUTPUT - name: Publish Latest to Docker uses: docker/build-push-action@v2 diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 92109ef..2128801 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -25,8 +25,8 @@ jobs: build-package: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.12' @@ -50,7 +50,7 @@ jobs: # only upload package assets with new release if: github.event_name == 'release' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: pypi-packages-${{ github.sha }} @@ -71,7 +71,7 @@ jobs: # only publish packages with new tags or release if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: pypi-packages-${{ github.sha }} @@ -100,7 +100,7 @@ jobs: # only publish packages with new tags or release if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/download-artifact@v3 with: name: pypi-packages-${{ github.sha }}