-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix actions jobs not to run lint under nightly
Stable and nightly rust can format differently. So check format only in stable rust not in nightly.
- Loading branch information
1 parent
3e88e87
commit 84c5199
Showing
2 changed files
with
17 additions
and
8 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 |
---|---|---|
|
@@ -10,6 +10,10 @@ jobs: | |
python: [3.7, 3.8, 3.9] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cdebug-assertions=no -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | ||
RUSTDOCFLAGS: "-Cpanic=abort" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
|
@@ -20,14 +24,13 @@ jobs: | |
toolchain: nightly | ||
override: true | ||
components: rustfmt,clippy | ||
- name: Install dependencies | ||
- name: Setup | ||
run: | | ||
pip install pipenv | ||
make python-version=${{ matrix.python }} build-opt='' | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cdebug-assertions=no -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | ||
RUSTDOCFLAGS: "-Cpanic=abort" | ||
make setup python-version=${{ matrix.python }} build-opt='' | ||
- name: Test | ||
run: | | ||
make test | ||
- id: coverage | ||
uses: actions-rs/[email protected] | ||
- uses: codecov/codecov-action@v1 | ||
|
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