generated from dslp/dslp-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (46 loc) · 1.24 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: installing python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: updating submodules
run: |
git submodule update --init --recursive
git submodule update --remote --merge
- name: installing dependencies
run: |
python -m pip install --upgrade pip
pip install -e btcnn
pip install -e hbo_bench
pip install -e .
- name: raw data extracting
run: |
sudo apt-get install -y p7zip-full
7za x hbo_bench/src/hbo_bench/data/raw/raw_data.7z -ohbo_bench/src/hbo_bench/data/raw
- name: raw data processing
run: |
cd hbo_bench
python3 process_raw_data.py
cd ..
- name: formatting
run: |
black --check --line-length 120 .
- name: type checking
run: |
mypy src/hero
- name: linting
run: |
pylint **/*.py
- name: testing
run: |
pytest --cov=. --cov-report=xml tests
- name: uploading coverage badge
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}