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")