Skip to content

Commit

Permalink
chore(ci): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Oct 18, 2024
1 parent 6215b4c commit 6bd01e2
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ jobs:

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools

- name: Install dependencies
run: uv sync --locked --no-dev --extra tests
env:
RUSTFLAGS: -C=instrument-coverage

- name: Run tests
run: uv run pytest
Expand Down Expand Up @@ -123,14 +119,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
id: setup-python
with:
cache: pip
cache-dependency-path: uv.lock

- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand All @@ -144,7 +136,7 @@ jobs:
uses: taiki-e/install-action@just

- name: Install dependencies for profiling
run: just install-profiling --locked --no-dev --extra tests --python '${{ steps.setup-python.outputs.python-path }}'
run: just install-profiling --locked --no-dev --extra tests
env:
RUSTFLAGS: -Cprofile-generate=${{ github.workspace }}/profdata

Expand All @@ -159,13 +151,10 @@ jobs:
run: rustup run stable bash -c '$RUSTUP_HOME/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/${{ env.RUST_HOST }}/bin/llvm-profdata merge -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata'

- name: Re-install dependencies
run: just install-profiling --locked --no-dev --extra tests --python '${{ steps.setup-python.outputs.python-path }}'
run: just install-profiling --locked --no-dev --extra tests
env:
RUSTFLAGS: -Cprofile-use=${{ github.workspace }}/merged.profdata

- name: Re-run benchmarks
run: just test-python --dist=no -n0 --benchmark-enable differt/tests/benchmarks

- name: Run CodSpeed benchmarks
uses: CodSpeedHQ/action@v3
with:
Expand Down

0 comments on commit 6bd01e2

Please sign in to comment.