-
Notifications
You must be signed in to change notification settings - Fork 26
50 lines (39 loc) · 1.02 KB
/
tests_unit.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
name: unit
on:
push:
# Runs for pull requests
pull_request:
branches:
- master
# Runs on publish
release:
types:
[published]
# Allow manual triggers
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
# Cancel previous jobs if a new version was pushed
concurrency:
group: "${{ github.ref }}-${{ matrix.arch }}"
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: dependencies
run: |
pip install poetry
poetry env use python3.10
source $(poetry env info -p)/bin/activate
# poetry doesnot work when installing those !?
pip install -e benchmate
pip install antlr4-python3-runtime==4.9.3
pip install -e .
poetry install --with dev
- name: tests
run: |
source $(poetry env info -p)/bin/activate
pytest --ignore=tests/integration tests/