Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
*.pyo
*.egg
*.egg-info/
*.tox
**/.python-version

.DS_Store
.coverage
Expand Down
5 changes: 4 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ stages:
- test

variables:
PYVERSION: "3.11"
PYVERSION: ""
LOGCAPTURE_LEVEL: "DEBUG"
CODECOV_TOKEN: "034f0bb1-e590-406f-820c-4e7c41b17712"

# set up the basic job
.runtests:
parallel:
matrix:
- PYVERSION: ["3.9", "3.10", "3.11", "3.12", "3.13"]
before_script:
- "conda create --prefix /root/factordev --channel conda-forge --file requirements.txt python=${PYVERSION} curl nose2 coverage --yes --quiet"
- /root/factordev/bin/pip install -e .
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pandas
scipy
numpy
scikit-learn >= 1.6.0
tox >= 4
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def requirements(): # noqa: D103
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
zip_safe=True,
)
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tox]
env_list = lint, 3.9, 3.1{0, 1, 2, 3}

[testenv]
deps =
pytest
-r requirements.txt
commands = pytest -W ignore::UserWarning -W ignore::DeprecationWarning

[testenv:lint]
description = run linters
skip_install = true
deps =
black
commands = black {posargs:.}