Skip to content

Commit

Permalink
.yml (#22)
Browse files Browse the repository at this point in the history
* v2024.7.1
util.__init__ : ref_count_hfunc() to greedily find tpl_sim with min hfunc calls
vinecop._data_vcp : one visit() for both hfunc and hinv in sim
vinecop._factory_vcp: code refactoring to include the above

* Update .yml
pytest ./tests
matrix.os

* pyproject.toml, stdtr/stdtrit, README
drop torch dependency for user customization
  • Loading branch information
TY-Cheng authored Jul 16, 2024
1 parent a8de187 commit f932d88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Lint Pytest

on:
push:
branches: ["main"]
branches: ["main", "dev_ian"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -29,7 +31,7 @@ jobs:
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
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# 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
Expand All @@ -38,6 +40,6 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest ./tests/test_bicop.py
# the rest takes forever without GPU.
pytest ./tests/test_vinecop.py -k "test_io"
python -c "import sys; print(sys.version)"
python -c "import torch; print(torch.cuda.is_available())"
pytest ./tests
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit f932d88

Please sign in to comment.