Skip to content

Commit

Permalink
Update and improve CI (#1497)
Browse files Browse the repository at this point in the history
* Fix CI

* Update setup python

* Try

* Try something else

* Auto cancel workflows for new commits
  • Loading branch information
martinRenou authored Oct 9, 2024
1 parent 0ffd12a commit da44e2c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: '0 2 * * 1-5' # run on weekdays at 2:00am UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

Expand All @@ -27,7 +31,7 @@ jobs:
version_spec: next

- name: Upload Distributions
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: voila-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: '0 2 * * 1-5' # run on weekdays at 2:00am UTC

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test-linux:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -70,7 +74,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-12]
os: [macos]
python_version: ['3.8', '3.9', '3.10', '3.11']

steps:
Expand Down Expand Up @@ -116,7 +120,7 @@ jobs:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1

Expand Down Expand Up @@ -46,7 +50,7 @@ jobs:
sha256sum * | tee SHA256SUMS
- name: Upload distributions
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist ${{ github.run_number }}
path: ./dist
Expand All @@ -72,11 +76,10 @@ jobs:
py_cmd: python
steps:
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: 'x64'
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: dist ${{ github.run_number }}
path: ./dist
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: UI Tests

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ui-tests:
name: Visual Regression
Expand Down Expand Up @@ -50,23 +54,23 @@ jobs:

- name: Upload Playwright Test assets
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: voila-test-assets
path: |
ui-tests/test-results
- name: Upload Playwright Benchmark report
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: voila-benchmark-report
path: |
ui-tests/benchmark-results
- name: Upload Playwright Test report
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: voila-test-report
path: |
Expand Down

0 comments on commit da44e2c

Please sign in to comment.