-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (48 loc) · 1.16 KB
/
tests.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
name: Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- "*"
paths-ignore:
- "**.md"
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install e2e dependencies
run: pip install -r e2e/requirements.txt
- name: Run Unit Tests
run: cargo test
- name: Install goup
run: cargo install --path .
- name: Run e2e Tests
if: ${{ matrix.os != 'windows-latest' }}
run: |
eval "$(goup env)"
python3 e2e/main.py
- name: Run e2e Tests
if: ${{ matrix.os == 'windows-latest' }}
run: |
goup env | Out-String | Invoke-Expression
python3 e2e/main.py