-
Notifications
You must be signed in to change notification settings - Fork 199
51 lines (50 loc) · 1.37 KB
/
polyglot_build.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
name: Polyglot Piranha
on:
pull_request:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
detect:
uses: ./.github/workflows/detect_changes.yml
build_and_test:
name: Polyglot Piranha Build
runs-on: ubuntu-latest
needs: detect
steps:
- name: Checkout Piranha sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Run pre-commit
run : |
python -m venv .env
source .env/bin/activate
pip install pre-commit
cargo install taplo-cli --locked
pre-commit run --all-files
- name: Run unit and integration tests
run: cargo build && cargo test -- --include-ignored
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Create virtualenv and install dependencies
run: |
python -m venv .env
source .env/bin/activate
pip install maturin pytest
- name: Run Python tests
run: |
source .env/bin/activate
pip3 install -r experimental/requirements.txt
maturin develop
pytest tests/tests.py
pytest -s -rx .