test/first #8
2 changed files with 25 additions and 1 deletions
correct test due to new requirement of function
commit
b837501881
24
.github/workflows/pytest.yaml
vendored
Normal file
24
.github/workflows/pytest.yaml
vendored
Normal file
|
|
@ -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
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue