Add a semantic versioning checker (#1219)

This commit is contained in:
Luni-4 2024-02-02 20:53:19 +01:00 committed by GitHub
parent d4c4565293
commit f223297ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 29 additions and 0 deletions

29
.github/workflows/semver-checks.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: semver-checks
on:
schedule:
- cron: '0 21 * * THU' # Run every Thursday at 21:00 (UTC)
push:
tags:
- 'v*.*.*' # Run when a new version is being published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
semver-checks:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Check semantic versioning violations
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
# cargo-semver-checks uses `all-features` by default, but `burn`
# publishes on crates.io with `default-features`
feature-group: default-features
# Exclude crates which are not published on crates.io
exclude: backend-comparison,burn-no-std-tests,onnx-tests,pytorch-tests