-
Notifications
You must be signed in to change notification settings - Fork 15
61 lines (50 loc) · 1.39 KB
/
stress.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
52
53
54
55
56
57
58
59
60
name: Stress test the package
on:
push:
branches:
- main
pull_request:
paths:
- 'fitsio/**'
- 'fitsio-derive/**'
- 'fitsio-sys/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Cross.toml'
- 'rust-toolchain.toml'
- '.github/workflows/*.yml'
# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
stress:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-13
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies
run: |
brew install cfitsio python3
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: beta
- uses: Swatinem/rust-cache@v2
- name: cargo generate-lockfile
# enable this ci template to run regardless of whether the lockfile is checked in or not
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: Install cargo-stress
run: cargo install cargo-stress
- name: Stress test the code
working-directory: fitsio
run: cargo stress