-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (56 loc) · 1.41 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test
on:
pull_request:
push:
branches:
- main
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
- name: Install dependencies
shell: bash -l {0}
run: |
conda install graphviz python=3.11
pip install pytest pyyaml graphviz coverage
- name: Setup numba_rvsdg
shell: bash -l {0}
run: |
pip install -e .
- name: Run pytest and Generate Report
shell: bash -l {0}
run: |
coverage run -m pytest numba_rvsdg/tests/
- name: Display Coverage
shell: bash -l {0}
run: |
coverage report
pre-commit-hook:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
- name: Install dependencies
shell: bash -l {0}
run: |
conda install python=3.11 pre-commit pyyaml graphviz
- name: Run pre-commit
shell: bash -l {0}
run: |
pre-commit run -a