Skip to content

Commit

Permalink
chore(ci): do not run nextest if no tests
Browse files Browse the repository at this point in the history
no tests for pyapi and capi on windows
  • Loading branch information
chrjabs committed Nov 27, 2024
1 parent 1c52370 commit e7c5bec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/capi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pyapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:

jobs:
build-test:
name: Build and test
name: Build
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -32,16 +32,16 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-test"
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
# - name: Install latest nextest release
# uses: taiki-e/install-action@nextest
- name: Cargo build
run: cargo build -p rustsat-pyapi --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Run tests
run: cargo nextest run --profile ci -p rustsat-pyapi --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
# - name: Run tests
# run: cargo nextest run --profile ci -p rustsat-pyapi --verbose
# env:
# CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Build Python package
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit e7c5bec

Please sign in to comment.