Skip to content

Commit

Permalink
Fix actions jobs not to run lint under nightly
Browse files Browse the repository at this point in the history
Stable and nightly rust can format differently. So check format only in
stable rust not in nightly.
  • Loading branch information
YushiOMOTE committed Dec 12, 2020
1 parent 3e88e87 commit 84c5199
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Test
- name: Setup
run: |
pip install pipenv
make python-version=${{ matrix.python }}
make setup python-version=${{ matrix.python }}
- name: Lint
run: |
make lint
- name: Test
run: |
make test

0 comments on commit 84c5199

Please sign in to comment.