-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (40 loc) · 1.04 KB
/
rust-tests.yaml
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
name: tests
on:
push:
branches: [fastsim-2, fastsim-3]
paths:
- "rust/**"
pull_request:
paths:
- "rust/**"
workflow_dispatch:
workflow_call:
jobs:
test:
# might not be needed
# if: github.repository == 'nrel/fastsim'
runs-on: ubuntu-latest
strategy:
fail-fast: true
# matrix:
# python-version: ['3.8', '3.9', '3.10']
# env:
# PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
# - name: set up python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# if: contains(github.event.pull_request.changed_files, 'rust/')
- name: install rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust unit tests
run: |
cd rust/ && cargo test
# in altrios, also includes python tests here, not sure I
# understand what added benefit this gives