Skip to content

Commit 6ce761f

Browse files
authored
Update pre-commit.yml (#288)
* Update pre-commit.yml * Update release.yml * Update ci.yml * Update book.yml
1 parent 8683c90 commit 6ce761f

File tree

4 files changed

+38
-53
lines changed

4 files changed

+38
-53
lines changed

.github/workflows/book.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,41 @@ jobs:
77
marimo:
88
runs-on: "ubuntu-latest"
99
steps:
10-
- name: Checkout [${{ github.repository }}]
11-
uses: actions/checkout@v4
10+
- name: "Build the virtual environment for ${{ github.repository }}"
11+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
1212

13-
- uses: cvxgrp/.github/actions/uv/marimo@v2.0.6
13+
- uses: cvxgrp/.github/actions/marimo@v2.1.1
14+
15+
pdoc:
16+
runs-on: "ubuntu-latest"
17+
steps:
18+
- name: "Build the virtual environment for ${{ github.repository }}"
19+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
20+
21+
- uses: cvxgrp/.github/actions/pdoc@v2.1.1
1422

1523
test:
1624
runs-on: "ubuntu-latest"
1725
steps:
18-
- name: Checkout [${{ github.repository }}]
19-
uses: actions/checkout@v4
26+
- name: "Build the virtual environment for ${{ github.repository }}"
27+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
2028

21-
- uses: cvxgrp/.github/actions/uv/coverage@v2.0.6
29+
- uses: cvxgrp/.github/actions/coverage@v2.1.1
2230

2331
jupyter:
2432
runs-on: "ubuntu-latest"
2533
steps:
26-
- name: Checkout [${{ github.repository }}]
27-
uses: actions/checkout@v4
34+
- name: "Build the virtual environment for ${{ github.repository }}"
35+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
2836

29-
- uses: cvxgrp/.github/actions/uv/jupyter@v2.0.6
37+
- uses: cvxgrp/.github/actions/jupyter@v2.1.1
3038

3139
book:
3240
runs-on: "ubuntu-latest"
33-
needs: [test, jupyter, marimo]
41+
needs: [test, pdoc, jupyter, marimo]
3442

3543
permissions:
3644
contents: write
3745

3846
steps:
39-
- name: Checkout [${{ github.repository }}]
40-
uses: actions/checkout@v4
41-
42-
- uses: cvxgrp/.github/actions/book@v2.0.6
47+
- uses: cvxgrp/.github/actions/book@v2.1.1

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "ci"
1+
name: "CI"
22

33
on:
44
- push
@@ -10,15 +10,14 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
os: [ ubuntu-latest, windows-latest, macos-latest ]
14-
python-version: ['3.10', '3.11', '3.12', '3.13']
13+
os: [ ubuntu-latest, macos-latest ]
14+
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
1515

1616
# Steps represent a sequence of tasks that will be executed as part of the job
1717
steps:
18-
- name: Checkout [${{ github.repository }}]
19-
uses: actions/checkout@v4
20-
21-
- uses: cvxgrp/.github/actions/uv/test@v2.0.9
18+
- name: "Build the virtual environment for ${{ github.repository }}"
19+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
2220
with:
23-
os: ${{ matrix.os }}
2421
python-version: ${{ matrix.python-version }}
22+
23+
- uses: cvxgrp/.github/actions/test@v2.1.1

.github/workflows/pre-commit.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
name: pre-commit
22

3+
permissions:
4+
contents: read
5+
36
on:
4-
pull_request:
57
push:
68

79
jobs:
8-
test:
10+
deptry:
911
runs-on: ubuntu-latest
12+
1013
steps:
11-
- name: Checkout [${{ github.repository }}]
12-
uses: actions/checkout@v4
14+
- name: "Build the virtual environment for ${{ github.repository }}"
15+
uses: cvxgrp/.github/actions/uv/environment@v2.1.1
1316

14-
- uses: cvxgrp/.github/actions/uv/coverage@v2.0.9
17+
- uses: cvxgrp/.github/actions/deptry@v2.1.1
1518

16-
- name: Coveralls GitHub Action
17-
uses: coverallsapp/github-action@v2
18-
with:
19-
files: artifacts/tests/coverage/coverage.info
20-
format: lcov
2119

22-
deptry:
20+
pre-commit:
2321
runs-on: ubuntu-latest
2422
steps:
25-
- name: Checkout [${{ github.repository }}]
26-
uses: actions/checkout@v4
27-
28-
- uses: cvxgrp/.github/actions/uv/deptry@v2.0.9
23+
- uses: cvxgrp/.github/actions/pre-commit@v2.1.1

.github/workflows/release.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,18 @@
11
name: Bump version and publish
22

33
on:
4-
workflow_dispatch:
5-
workflow_run:
6-
workflows: [ "CI" ]
7-
types: [ completed ]
4+
workflow_dispatch
85

96
jobs:
107
tag:
118
permissions:
129
contents: write
1310

14-
if: >
15-
github.event_name == 'workflow_dispatch' ||
16-
(github.event.workflow_run.conclusion == 'success' &&
17-
github.event.workflow_run.head_branch == 'main')
18-
1911
runs-on: ubuntu-latest
2012

2113
steps:
22-
- name: Checkout [${{ github.repository }}]
23-
uses: actions/checkout@v4
24-
2514
- name: Generate Tag
26-
uses: cvxgrp/.github/actions/uv/tag@v2.0.9
15+
uses: cvxgrp/.github/actions/tag@v2.1.1
2716
with:
2817
github_token: ${{ secrets.GITHUB_TOKEN }}
2918

@@ -38,9 +27,6 @@ jobs:
3827
id-token: write
3928

4029
steps:
41-
- name: Checkout [${{ github.repository }}]
42-
uses: actions/checkout@v4
43-
4430
- uses: actions/download-artifact@v4
4531
with:
4632
name: dist

0 commit comments

Comments
 (0)