-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 965 Bytes
/
check-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
name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
DEP_PATH: /requirements.txt
jobs:
security_check:
name: Security Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install minimal stable RUST with clippy and rustfmt
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- name: Install dependencies and run pytest
run: |
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -y
maturin develop -r
pytest python/tests/.