Skip to content

Commit

Permalink
Add parameter tmp_dir to persist trained classifiers (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirand863 authored Mar 8, 2024
1 parent c7979b2 commit c767c9b
Show file tree
Hide file tree
Showing 13 changed files with 296 additions and 198 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v2
Expand All @@ -23,15 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8==4.0.1
python -m pip install pytest==7.1.2
python -m pip install pytest-flake8==1.1.1
python -m pip install pydocstyle==6.1.1
python -m pip install pytest-pydocstyle==2.3.0
python -m pip install pytest-cov==3.0.0
python -m pip install ray
python -m pip install 'importlib-metadata<4.3'
python -m pip install .
python -m pip install -e ".[dev]"
- name: Test with pytest
run: |
pytest -v --flake8 --pydocstyle --cov=hiclass --cov-fail-under=90 --cov-report html
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8==4.0.1
python -m pip install pytest==7.1.2
python -m pip install pytest-flake8==1.1.1
python -m pip install pydocstyle==6.1.1
python -m pip install pytest-pydocstyle==2.3.0
python -m pip install pytest-cov==3.0.0
python -m pip install ray
python -m pip install .
python -m pip install -e ".[dev]"
- name: Test with pytest
run: |
pytest -v --flake8 --pydocstyle --cov=hiclass --cov-fail-under=90 --cov-report html
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.2.0
hooks:
- id: black
10 changes: 1 addition & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@ Please make sure all tests pass before submitting a pull request. It is also goo
To test the code locally you need to install the dependencies for the library in the current environment. Additionally, you need to install the dependencies for testing. All of those dependencies can be installed with:

```
pip install flake8==4.0.1
pip install pytest==7.1.2
pip install pytest-flake8==1.1.1
pip install pydocstyle==6.1.1
pip install pytest-pydocstyle==2.3.0
pip install pytest-cov==3.0.0
pip install black==22.10.0
pip install pre-commit==2.20.0
pip install -e .
pip install -e ".[dev]"
```

To run the tests simply execute:
Expand Down
Loading

0 comments on commit c767c9b

Please sign in to comment.