Skip to content

Commit

Permalink
Improve the CI experience
Browse files Browse the repository at this point in the history
* Cancel old running jobs if new are pushed.
* Schedule daily builds of the wheel builder.
* Rename the wheel builder to a shorter name.
  • Loading branch information
pablogsal committed Apr 12, 2022
1 parent 69053ef commit bc0c2a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check_generated_files:
name: 'Check if generated files are up to date'
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
name: Build and upload to PyPI
name: Linux Wheels

on:
push:
pull_request:
release:
types:
- published
schedule:
# At 12:00 on every day-of-month
- cron: "0 12 */1 * *"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true


jobs:
build_wheels:
Expand Down

0 comments on commit bc0c2a4

Please sign in to comment.