Skip to content

Commit ae6413d

Browse files
authored
Merge pull request #1 from DanielT/workflows
add a workflow to run pytest
2 parents 501c27e + fe532e8 commit ae6413d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/Test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# test autosar-data-py with pytest
2+
name: Test
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
tags:
9+
- '*'
10+
pull_request:
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
linux:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: '3.x'
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install pytest
29+
pip install maturin
30+
- name: Build and install wheel
31+
run: |
32+
maturin build --out dist --find-interpreter
33+
pip install autosar-data --find-links dist
34+
- name: Test with pytest
35+
run: |
36+
pytest

0 commit comments

Comments
 (0)