-
Notifications
You must be signed in to change notification settings - Fork 50
51 lines (46 loc) · 1.26 KB
/
end-to-end.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on:
push:
branches: [ main ]
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
pull_request:
paths:
- "src/**"
- "Cargo.*"
- "rust-tests/**"
- "test/end-to-end/**"
name: End-to-End testing
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUST_LOG: info
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
RATTLER_BUILD_ENABLE_GITHUB_INTEGRATION: "true"
jobs:
run_tests:
strategy:
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
fail-fast: false
name: Run tests
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
with:
workspaces: ". -> target-pixi"
key: ${{ hashFiles('pixi.lock') }}
- uses: prefix-dev/[email protected]
# build in release mode so that it's reasonably fast to run the tests
- run: pixi run build-release
- run: pixi run test-ci
- run: pixi run test-end-to-end -s -v
env:
PREFIX_DEV_READ_ONLY_TOKEN: ${{ secrets.PREFIX_DEV_READ_ONLY_TOKEN }}
ANACONDA_ORG_TEST_TOKEN: ${{ secrets.ANACONDA_ORG_TEST_TOKEN }}