From b8375018811f0acc5d22e955bfc7df2df826503d Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Mon, 1 Dec 2025 12:25:06 +0100 Subject: [PATCH] correct test due to new requirement of function --- .github/workflows/pytest.yaml | 24 ++++++++++++++++++++++++ tests/import_project_test.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pytest.yaml diff --git a/.github/workflows/pytest.yaml b/.github/workflows/pytest.yaml new file mode 100644 index 0000000..db9cfa1 --- /dev/null +++ b/.github/workflows/pytest.yaml @@ -0,0 +1,24 @@ +name: Pytest + +jobs: + test: + strategy: + matrix: + python-version: + - "3.10" + - "3.11" + - "3.12" + + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + show-progress: true + - name: Install uv + uses: astral-sh/setup-uv@v7 + - name: Install corrlib + run: uv sync --locked --all-extras --dev + - name: Run tests + # For example, using `pytest` + run: uv run pytest tests diff --git a/tests/import_project_test.py b/tests/import_project_test.py index ec8272c..2dea06f 100644 --- a/tests/import_project_test.py +++ b/tests/import_project_test.py @@ -14,4 +14,4 @@ def test_toml_check_measurement_data(): "names": ['list', 'of', 'names'] } } - t.check_measurement_data(measurements) + t.check_measurement_data(measurements, "sfcf")