Skip to content

Commit d4fb4bd

Browse files
committed
update OS version
Signed-off-by: mohapatr3 <[email protected]>
1 parent 8e3754b commit d4fb4bd

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.github/workflows/generator.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,21 @@ env:
1111

1212
jobs:
1313
Build:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- name: Dependencies
18+
uses: astral-sh/setup-uv@v6
1719
- name: Install
1820
run: |
1921
cd flatdata-generator
2022
# runtime requirements
2123
pip install -r requirements.txt
2224
# CI requirements
23-
pip install pytest pylint
25+
pip install pylint
2426
- name: Run tests
2527
run: |
2628
cd flatdata-generator
27-
python -m pytest
29+
uv run --with pytest pytest
2830
pip install .
2931
flatdata-generator --help

.github/workflows/py.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@ env:
1111

1212
jobs:
1313
Build:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- name: Dependencies
18+
uses: astral-sh/setup-uv@v6
1719
- name: Install
1820
run: |
1921
pip install ./flatdata-generator
2022
cd flatdata-py
2123
# runtime requirements
2224
pip install -r requirements.txt
2325
# CI requirements
24-
pip install pytest pylint
26+
pip install pylint
2527
- name: Run tests
2628
run: |
2729
cd flatdata-py
28-
python -m pytest
30+
uv run --with pytest pytest
2931
pip install .
3032
flatdata-inspector --help

flatdata-generator/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ include = [
3333

3434
[tool.hatch.build.targets.wheel]
3535
packages = ["flatdata"]
36+
37+
[tool.pytest.ini_options]
38+
testpaths = [ "tests" ]
39+
python_files = [ "test_*.py" ]
40+
python_classes = [ "Test*" ]
41+
python_functions = [ "test_*" ]

flatdata-generator/pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

flatdata-py/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ include = [
4040

4141
[tool.hatch.build.targets.wheel]
4242
packages = ["flatdata"]
43+
44+
[tool.pytest.ini_options]
45+
testpaths = [ "tests" ]
46+
python_files = [ "test_*.py" ]
47+
python_classes = [ "Test*" ]
48+
python_functions = [ "test_*" ]

flatdata-py/pytest.ini

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)