forked from PyO3/pyo3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eef653b
commit 8f32195
Showing
2 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Quick CI | ||
|
||
# A short version of the CI, designed to run in seconds (<200s) on every push. | ||
# Runs lints & basic tests on ALL branches EXCEPT main. | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- run: python -m pip install --upgrade pip && pip install nox | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- name: Check python formatting and lints (ruff) | ||
run: nox -s ruff | ||
- name: Check rust formatting (rustfmt) | ||
run: nox -s rustfmt | ||
|
||
semver-checks: | ||
if: github.ref != 'refs/heads/main' | ||
needs: [fmt] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
|
||
clippy: | ||
needs: [fmt] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy,rust-src | ||
- uses: actions/setup-python@v5 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
- run: python -m pip install --upgrade pip && pip install nox | ||
- run: nox -s clippy | ||
|
||
tests: | ||
name: test rust skip-full | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rust-src | ||
- run: python -m pip install --upgrade pip && pip install nox | ||
- run: nox -s test-rust -- skip-full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters