-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (70 loc) · 2.15 KB
/
checking_bug.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: check bug before merge
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
run_seq:
name: testing sequential approach
runs-on: ubuntu-latest
env:
working-directory: ./sequential
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-seq-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}
- name: install dependencies
working-directory: ${{ env.working-directory }}
run: pip install -r requirements.txt
- name: test main.py
working-directory: ${{ env.working-directory }}
run: pytest
run_graph:
name: testing graph approach
runs-on: ubuntu-latest
env:
working-directory: ./graph
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-graph-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}
- name: install dependencies
working-directory: ${{ env.working-directory }}
run: pip install -r requirements.txt
- name: test main.py
working-directory: ${{ env.working-directory }}
run: pytest
run_tab:
name: testing tabular approach
runs-on: ubuntu-latest
env:
working-directory: ./tabular
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-tab-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}
- name: install dependencies
working-directory: ${{ env.working-directory }}
run: pip install -r requirements.txt
- name: test main.py
working-directory: ${{ env.working-directory }}
run: pytest