-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.25 KB
/
rust-test.yml
File metadata and controls
48 lines (45 loc) · 1.25 KB
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
name: Rust Test
permissions: {}
on:
workflow_dispatch:
push:
branches: ["main"]
paths-ignore:
- "doc/**"
- "**/*.md"
- ".github/workflows/static-checks.yml"
- ".pre-commit-config.yaml"
pull_request:
paths-ignore:
- "doc/**"
- "**/*.md"
- ".github/workflows/static-checks.yml"
- ".pre-commit-config.yaml"
schedule:
- cron: "20 14 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cargo-test:
name: Cargo Test (${{ matrix.rust }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'beta' }}
strategy:
matrix:
rust: [stable, beta]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.10"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 # master
with:
toolchain: ${{ matrix.rust }}
- name: Run cargo test
run: cargo test --no-default-features