Skip to content

Commit

Permalink
cleaning up pyproject.toml and ci to speed up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cparcerisas committed Sep 5, 2024
1 parent c0a59ba commit 7ff4299
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 36 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-versions }}

- name: Install dependencies
run: |
sudo apt-get install libsndfile1
make init-dev
make init-test
- name: Run unit tests
run: |
export POETRY_PYPAM_TEST_NO_PLOTS=make test
PYPAM_TEST_NO_PLOTS= make test
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ init: startup
init-dev: startup
poetry install --extras 'tests' --extras 'dev' --extras 'docs'

init-test: startup
poetry install --with 'tests'

init-docs: startup
poetry install --extras 'docs'

Expand Down
70 changes: 47 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ classifiers =[
"Operating System :: OS Independent"]

[tool.poetry.dependencies]
python = ">=3.10, <3.12.0"
python = ">=3.9, <3.12.0"
matplotlib = "^3.7.1"
numpy = "^1.24.3"
pandas = "^2.0.2"
Expand All @@ -28,23 +28,17 @@ xarray = "2023.8.0"
pyhydrophone = "^0.1.7"
netcdf4 = "^1.6.4"
syrupy = "^4.0.4"
#openpyxl = "^3.1.2"
#scikit-maad = "^1.4.0"
#setuptools = ">=68.1,<71.0"
#certifi = ">=2023.7.22,<2025.0.0"
#cryptography = ">=41.0.2,<43.0.0"
#dask = {version = "^2023.9.3", optional = true}
scikit-maad = "^1.4.3"
openpyxl = "^3.1.5"
pvlib = {version = "^0.11.0", optional = true}
dask = {version = "^2024.8.2", optional = true}
dask = {version = "^2023.0.0", optional = true}

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.1"
isort = "^5.12.0"
black = ">=23.3,<25.0"

[tool.poetry.group.test.dependencies]
[tool.poetry.group.tests.dependencies]
pyyaml = "^6.0"
pytest = "^7.3.1"
coverage = "^7.2.5"
Expand Down

0 comments on commit 7ff4299

Please sign in to comment.