Skip to content

Commit

Permalink
Update python-package.yml (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
TY-Cheng authored Oct 8, 2024
1 parent e659e1b commit ad544de
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "numpy<2"
python -m pip install "pyvinecopulib==0.6.6"
python -m pip install flake8 pytest scipy torch pot matplotlib scikit-learn pandas
python -m pip install flake8 pytest numpy scipy torch pot matplotlib scikit-learn pandas
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --ignore=E203,W503 --statistics
- name: Test with pytest
run: |
python -c "import sys; print(sys.version)"
python -c "import torch; print(torch.cuda.is_available())"
pytest ./tests
pytest ./tests --verbose

0 comments on commit ad544de

Please sign in to comment.