Some E2E testing #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |