Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test latest release arcticdb w python 3.12, 3.13 #159

Merged
merged 1 commit into from
Jan 28, 2025
Merged
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
12 changes: 2 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,26 +81,18 @@ jobs:
cache: "pip"
cache-dependency-path: pyproject.toml

- name: Install dependencies < PY312
if: ${{ matrix.python-version < '3.12'}}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install ${{ matrix.pastas-version }}
pip install -e .[test]

- name: Install dependencies >= PY312
if: ${{ matrix.python-version >= '3.12'}}
run: |
pip install --upgrade pip
pip install ${{ matrix.pastas-version }} setuptools
pip install -e .[test_noarctic]

- name: Run pytest
run: |
pytest -m "not (bgmap or pastas150)"

- name: Run all tests once
if: ${{ matrix.python-version == '3.11' && matrix.pastas-version == 'git+https://github.com/pastas/pastas.git@dev' }}
if: ${{ matrix.python-version == '3.12' && matrix.pastas-version == 'git+https://github.com/pastas/pastas.git@dev' }}
run: |
pytest -m ""

Expand Down
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ pytest = [
"codacy-coverage",
]
test = ["pastastore[arcticdb,lint,optional,pytest]", "hydropandas[full]"]
test_noarctic = [
"pastastore[lint,optional,pytest]", # no arcticdb
"hydropandas[full]",
]
docs = [
"pastastore[optional]",
"sphinx_rtd_theme",
Expand Down
6 changes: 1 addition & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
# ruff: noqa: D100 D103
import importlib
from importlib import metadata
from platform import python_version

import pandas as pd
import pastas as ps
import pytest
from packaging.version import parse as parse_version

import pastastore as pst

IS_PY312 = parse_version(python_version()) >= parse_version("3.12.0")

params = ["dict", "pas", "arcticdb"] if not IS_PY312 else ["dict", "pas"]
params = ["dict", "pas", "arcticdb"]


def initialize_project(conn):
Expand Down
Loading