Skip to content

Commit 965c7ab

Browse files
committed
CI permission
1 parent a94cf75 commit 965c7ab

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@ on:
77
release:
88
types: [published]
99

10-
permissions:
11-
contents: read
12-
1310
jobs:
1411
deploy:
1512

1613
strategy:
17-
fail-fast: false
1814
matrix:
1915
os: [ubuntu-latest, macos-latest, windows-latest]
2016
python-version: ["3.10", "3.11", "3.12"]
2117
runs-on: ${{ matrix.os }}
2218

19+
permissions:
20+
id-token: write
21+
2322
steps:
2423
- uses: actions/checkout@v4
2524
- name: Set up Python ${{ matrix.python-version }}
@@ -36,11 +35,11 @@ jobs:
3635
- name: Test with pytest
3736
run: |
3837
pixi run test
38+
- name: Test with doctest
39+
run: |
40+
CMD=doctest pixi run doc
3941
- name: Build package
4042
run: |
4143
pixi run build-wheel
4244
- name: Publish package
43-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
44-
with:
45-
user: __token__
46-
password: ${{ secrets.PYPI_API_TOKEN }}
45+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fastcan"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
description = "A Fast canonical-correlation-based feature selection method"
55
authors = [
66
{ name = "Matthew Sikai Zhang", email = "[email protected]" },

0 commit comments

Comments
 (0)