-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (41 loc) · 961 Bytes
/
Test.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
# test autosar-data-py with pytest
name: Test
on:
push:
branches:
- main
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install maturin
- name: Prepare virtualenv
run: |
python -m venv .venv
- name: Build and install wheel
run: |
.venv/bin/activate
maturin develop
- name: Test with pytest
run: |
.venv/bin/activate
which python
ls .venv
ls .venv/lib
ls .venv/lib/site-packages
pytest