Skip to content

Commit 2df5db8

Browse files
authored
Merge pull request #93 from QuLogic/update-ci
2 parents 12966fb + 4f1df71 commit 2df5db8

File tree

4 files changed

+41
-22
lines changed

4 files changed

+41
-22
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
groups:
9+
actions:
10+
patterns:
11+
- "*"

.github/workflows/circleci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
name: Run CircleCI artifacts redirector
1111
steps:
1212
- name: GitHub Action step
13-
uses: larsoner/circleci-artifacts-redirector-action@master
13+
uses:
14+
scientific-python/circleci-artifacts-redirector-action@4e13a10d89177f4bfc8007a7064bdbeda848d8d1 # v1.0.0
1415
with:
1516
repo-token: ${{ secrets.GITHUB_TOKEN }}
1617
api-token: ${{ secrets.CIRCLECI_TOKEN }}

.github/workflows/lint.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,30 @@
33
name: Linting
44
on: [pull_request]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
flake8:
811
name: flake8
912
runs-on: ubuntu-latest
13+
permissions:
14+
checks: write
1015
steps:
11-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
1219

1320
- name: Set up Python 3
14-
uses: actions/setup-python@v1
21+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
1522
with:
16-
python-version: 3.8
23+
python-version: '3.x'
1724

1825
- name: Install flake8
1926
run: pip3 install 'flake8>=3.8'
2027

2128
- name: Set up reviewdog
22-
run: |
23-
mkdir -p "$HOME/bin"
24-
curl -sfL \
25-
https://github.com/reviewdog/reviewdog/raw/master/install.sh | \
26-
sh -s -- -b "$HOME/bin"
27-
echo "$HOME/bin" >> $GITHUB_PATH
29+
uses: reviewdog/action-setup@3f401fe1d58fe77e10d665ab713057375e39b887 # v1.3.9
2830

2931
- name: Run flake8
3032
env:

.github/workflows/release.yml

+17-12
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ on:
66
types:
77
- published
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
name: Build Release Packages
1215
runs-on: ubuntu-latest
1316
steps:
14-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1518
with:
16-
fetch-depth: 10
19+
fetch-depth: 0
20+
persist-credentials: false
1721

1822
- name: Set up Python
1923
id: setup
20-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
2125
with:
22-
python-version: 3.x
26+
python-version: '3.x'
2327

2428
- name: Install build tools
2529
run: |
@@ -30,7 +34,7 @@ jobs:
3034
run: python -m build
3135

3236
- name: Save built packages as artifact
33-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
3438
with:
3539
name: packages-${{ runner.os }}-${{ steps.setup.outputs.python-version }}
3640
path: dist/
@@ -43,15 +47,16 @@ jobs:
4347
runs-on: ubuntu-latest
4448
environment: release
4549
permissions:
50+
attestations: write
51+
contents: read
4652
id-token: write
4753
steps:
4854
- name: Download packages
49-
uses: actions/download-artifact@v3
50-
51-
- name: Consolidate packages for upload
52-
run: |
53-
mkdir dist
54-
cp packages-*/* dist/
55+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
56+
with:
57+
pattern: packages-*
58+
path: dist
59+
merge-multiple: true
5560

5661
- name: Publish package distributions to PyPI
57-
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10
62+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3

0 commit comments

Comments
 (0)