Skip to content

Commit

Permalink
switch codecov to use oidc (#484)
Browse files Browse the repository at this point in the history
* switch codecov to use oidc
  • Loading branch information
AndrewAnnex authored Jun 28, 2024
1 parent 184b679 commit d6c7a3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
name: Test SpiceyPy 🌶️ 🥧
needs: build
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
Expand Down Expand Up @@ -121,8 +124,12 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
use_oidc: true
test_offline_shared:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v4
Expand Down Expand Up @@ -169,8 +176,12 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
use_oidc: true
test_offline_cspice_install:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v4
Expand Down Expand Up @@ -216,3 +227,4 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
use_oidc: true
9 changes: 8 additions & 1 deletion .github/workflows/publish-to-test-and-live-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI

on:
pull_request:
push:
Expand All @@ -12,6 +12,9 @@ jobs:
build_sdist:
name: Make SpiceyPy 🌶️ 🥧 Python 🐍 source distribution
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout 🌶️ 🥧
uses: actions/checkout@v4
Expand Down Expand Up @@ -39,6 +42,7 @@ jobs:
with:
fail_ci_if_error: false
verbose: true
use_oidc: true
- name: Check dists
run: |
twine check dist/*
Expand Down Expand Up @@ -130,6 +134,9 @@ jobs:
name: Publish SpiceyPy 🌶️ 🥧 Python 🐍 distributions 📦 to PyPI and TestPyPI
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit d6c7a3b

Please sign in to comment.