-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 855 Bytes
/
rust.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
name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
run-python-e2e-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Cache
uses: actions/[email protected]
with:
path: |
~/.cargo
target
key: build-${{ runner.os }}
restore-keys: |
build-${{ runner.os }}
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
- run: pip install -r requirements.txt
- run: mkdir tests/markdown_files
- name: Run dev Custard in background
run: cargo run -- 4000 tests/markdown_files &
- name: Wait for Custard
run: sleep 3
- name: Run Python test(s)
run: pytest tests/python