Skip to content

Commit da44e2c

Browse files
authored
Update and improve CI (#1497)
* Fix CI * Update setup python * Try * Try something else * Auto cancel workflows for new commits
1 parent 0ffd12a commit da44e2c

File tree

5 files changed

+29
-10
lines changed

5 files changed

+29
-10
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
schedule:
1111
- cron: '0 2 * * 1-5' # run on weekdays at 2:00am UTC
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build:
1519
runs-on: ubuntu-latest

.github/workflows/check-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- main
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
permissions:
1115
contents: write
1216

@@ -27,7 +31,7 @@ jobs:
2731
version_spec: next
2832

2933
- name: Upload Distributions
30-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v3
3135
with:
3236
name: voila-releaser-dist-${{ github.run_number }}
3337
path: .jupyter_releaser_checkout/dist

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
schedule:
1111
- cron: '0 2 * * 1-5' # run on weekdays at 2:00am UTC
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
test-linux:
1519
runs-on: ${{ matrix.os }}
@@ -70,7 +74,7 @@ jobs:
7074
strategy:
7175
fail-fast: false
7276
matrix:
73-
os: [macos-12]
77+
os: [macos]
7478
python_version: ['3.8', '3.9', '3.10', '3.11']
7579

7680
steps:
@@ -116,7 +120,7 @@ jobs:
116120
- uses: actions/checkout@v2
117121

118122
- name: Set up Python
119-
uses: actions/setup-python@v4
123+
uses: actions/setup-python@v5
120124
with:
121125
python-version: ${{ matrix.python-version }}
122126

.github/workflows/packaging.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- '*'
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
env:
1216
PIP_DISABLE_PIP_VERSION_CHECK: 1
1317

@@ -46,7 +50,7 @@ jobs:
4650
sha256sum * | tee SHA256SUMS
4751
4852
- name: Upload distributions
49-
uses: actions/upload-artifact@v2
53+
uses: actions/upload-artifact@v3
5054
with:
5155
name: dist ${{ github.run_number }}
5256
path: ./dist
@@ -72,11 +76,10 @@ jobs:
7276
py_cmd: python
7377
steps:
7478
- name: Install Python
75-
uses: actions/setup-python@v4
79+
uses: actions/setup-python@v5
7680
with:
7781
python-version: ${{ matrix.python }}
78-
architecture: 'x64'
79-
- uses: actions/download-artifact@v2
82+
- uses: actions/download-artifact@v3
8083
with:
8184
name: dist ${{ github.run_number }}
8285
path: ./dist

.github/workflows/ui-tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: UI Tests
22

33
on: [push, pull_request]
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
ui-tests:
711
name: Visual Regression
@@ -50,23 +54,23 @@ jobs:
5054

5155
- name: Upload Playwright Test assets
5256
if: always()
53-
uses: actions/upload-artifact@v2
57+
uses: actions/upload-artifact@v3
5458
with:
5559
name: voila-test-assets
5660
path: |
5761
ui-tests/test-results
5862
5963
- name: Upload Playwright Benchmark report
6064
if: always()
61-
uses: actions/upload-artifact@v2
65+
uses: actions/upload-artifact@v3
6266
with:
6367
name: voila-benchmark-report
6468
path: |
6569
ui-tests/benchmark-results
6670
6771
- name: Upload Playwright Test report
6872
if: always()
69-
uses: actions/upload-artifact@v2
73+
uses: actions/upload-artifact@v3
7074
with:
7175
name: voila-test-report
7276
path: |

0 commit comments

Comments
 (0)