Skip to content

Commit

Permalink
Standardize test run ordering in CI
Browse files Browse the repository at this point in the history
Ensure core Rust tests run before higher-level Python tests.
  • Loading branch information
cjdsellers committed Jan 24, 2025
1 parent 4e68754 commit b59fe0d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ jobs:
POSTGRES_PASSWORD: pass
POSTGRES_DATABASE: nautilus

- name: Common tests
- name: Run nautilus_core tests (with standard-precision)
run: make cargo-test-standard-precision

- name: Common test setup
uses: ./.github/actions/common-tests

- name: Run tests
run: |
pytest --ignore=tests/performance_tests
- name: Run nautilus_core tests (with standard-precision)
run: make cargo-test-standard-precision

build-linux:
strategy:
fail-fast: false
Expand Down Expand Up @@ -171,16 +171,16 @@ jobs:
POSTGRES_PASSWORD: pass
POSTGRES_DATABASE: nautilus

- name: Common tests
- name: Run nautilus_core tests
run: make cargo-test

- name: Common test setup
uses: ./.github/actions/common-tests

- name: Run tests
run: |
pytest --ignore=tests/performance_tests
- name: Run nautilus_core tests
run: make cargo-test

- name: Upload wheel artifact
uses: ./.github/actions/upload-artifact-wheel

Expand Down Expand Up @@ -216,16 +216,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Common tests
- name: Common test setup
uses: ./.github/actions/common-tests

- name: Run nautilus_core tests
run: make cargo-test

- name: Run tests
run: |
pytest --ignore=tests/performance_tests
- name: Run nautilus_core tests
run: make cargo-test

- name: Upload wheel artifact
uses: ./.github/actions/upload-artifact-wheel

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
POSTGRES_PASSWORD: pass
POSTGRES_DATABASE: nautilus

- name: Common tests
uses: ./.github/actions/common-tests

- name: Run nautilus_core tests
run: make cargo-test

- name: Common test setup
uses: ./.github/actions/common-tests

# Run codspeed once only
- name: Run benchmarks
uses: CodSpeedHQ/[email protected]
Expand Down

0 comments on commit b59fe0d

Please sign in to comment.