Skip to content

Commit 680c1b4

Browse files
committed
update gh workflows
1 parent ac0c115 commit 680c1b4

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
contents: read
9+
id-token: write
910

1011
jobs:
1112
deploy:
@@ -26,5 +27,3 @@ jobs:
2627
run: python -m build
2728
- name: Publish package
2829
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/testing.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
matrix:
37-
python-version: ["3.10", "3.11"]
37+
python-version: ["3.10", "3.11", "3.12"]
3838

3939
env:
4040
PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }}
@@ -58,8 +58,8 @@ jobs:
5858
- name: Test Notebooks
5959
run: pytest --nbmake ./docs/source/content
6060

61-
- uses: codecov/codecov-action@v1
62-
if: matrix.python-version == 3.10
61+
- uses: codecov/codecov-action@v4
62+
if: matrix.python-version == '3.10'
6363
with:
6464
token: ${{ secrets.CODECOV_TOKEN }}
6565
file: ./coverage.xml
@@ -92,7 +92,7 @@ jobs:
9292
# Develop branch only
9393
- name: Deploy
9494
if: github.ref == 'refs/heads/main'
95-
uses: peaceiris/actions-gh-pages@v3
95+
uses: peaceiris/actions-gh-pages@v4
9696
with:
9797
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
9898
publish_dir: ./docs/_build/html

.github/workflows/update-precommit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
auto-update:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

1414
- name: Set up Python
15-
- uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
17-
python-version: ${{ 3.10 }}
17+
python-version: "3.11"
1818
cache: pip
1919
cache-dependency-path: pyproject.toml
2020

@@ -25,7 +25,7 @@ jobs:
2525
run: pre-commit autoupdate
2626

2727
- name: Create Pull Request
28-
uses: peter-evans/create-pull-request@v3
28+
uses: peter-evans/create-pull-request@v6
2929
with:
3030
branch: update/pre-commit-autoupdate
3131
title: Auto-update pre-commit hooks

0 commit comments

Comments
 (0)