Skip to content

Commit

Permalink
fix(ci): hatchify
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Mar 28, 2024
1 parent 9b481ce commit 80ecef8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 26 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/entrainement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ jobs:
uses: actions/checkout@v4
- name: Install
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e .
python3 -m pip install hatch
- name: Cross-validate
run: |
sh results/run.sh
hatch run -- sh results/run.sh
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: results
path: results/*.csv
- name: Train
run: |
make train
hatch run train
- name: Upload models
uses: actions/upload-artifact@v4
with:
Expand Down
27 changes: 5 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,10 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt')}}-${{ hashFiles('**/requirements-dev.txt') }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
run: python -m pip install hatch

- name: Validate against psf/black
run: python -m black --check alexi test scripts

- name: Validate against isort
run: python -m isort --profile black --check-only alexi test scripts

- name: Validate against flake8
run: python -m flake8 alexi test scripts

# - name: Check type annotations via mypy
# run: python -m mypy alexi test scripts
- name: Validate with flake8, black, isort, mypyp
run: hatch run lint

test:
needs: lint
Expand All @@ -57,15 +45,10 @@ jobs:
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt')}}-${{ hashFiles('**/requirements-dev.txt') }}

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
run: python -m pip install hatch

- name: Run tests
run: |
python -m pytest --cov alexi
python -m coverage html
run: hatch run test

- name: Upload code coverage
uses: codecov/codecov-action@v4

0 comments on commit 80ecef8

Please sign in to comment.