Skip to content

Update main.yml

Update main.yml #98

Workflow file for this run

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 }}