File tree 3 files changed +7
-16
lines changed
tests/usethis/_integrations
3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ jobs:
36
36
- name : Set up Python
37
37
uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
38
38
with :
39
- python-version : ${{ matrix.python-version }}
40
-
41
- - name : Set up environment
39
+ python-version : ${{ matrix.python-version }}
40
+
41
+ - name : Setup dependencies
42
42
run : |
43
- uv python pin ${{ matrix.python-version }}
44
- uv sync --resolution ${{ matrix.resolution }}
43
+ uv export --resolution ${{ matrix.resolution }} > requirements.txt
44
+ uv pip install --system --break-system-packages -r requirements.txt
45
45
46
46
- name : Run pre-commit
47
47
if : matrix.pre-commit
@@ -51,15 +51,14 @@ jobs:
51
51
- name : Run pytest
52
52
uses : pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
53
53
with :
54
- custom-pytest : uv run --frozen pytest
55
54
custom-arguments : --cov --junitxml=junit.xml -o junit_family=legacy
56
55
57
56
- name : Run benchmarks
58
- uses : CodSpeedHQ/action@63ae6025a0ffee97d7736a37c9192dbd6ed4e75f # v3.4 .0
57
+ uses : CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3.2 .0
59
58
if : matrix.codspeed
60
59
with :
61
60
token : ${{ secrets.CODSPEED_TOKEN }}
62
- run : uv run --frozen pytest --codspeed
61
+ run : pytest --codspeed
63
62
64
63
- name : Upload coverage reports to Codecov
65
64
uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ def test_matches_schema_store(self):
38
38
# TIP: go into debug mode to copy-and-paste into updated schema.json
39
39
assert local_schema_json == online_schema_json
40
40
41
- @pytest .mark .skipif (
42
- bool (os .getenv ("CI" )),
43
- reason = ".python-version re-pinned in CI for test matrix" ,
44
- )
45
41
def test_target_python_version (self ):
46
42
# If this test fails, we should bump the version in the command in schema.py
47
43
assert Path (".python-version" ).read_text ().startswith ("3.10" )
Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ def test_matches_schema_store(self):
39
39
# Compare the JSON
40
40
assert local_schema_json == online_schema_json .replace ("\r \n " , "\n \n " )
41
41
42
- @pytest .mark .skipif (
43
- bool (os .getenv ("CI" )),
44
- reason = ".python-version re-pinned in CI for test matrix" ,
45
- )
46
42
def test_target_python_version (self ):
47
43
# If this test fails, we should bump the version in the command in schema.py
48
44
assert Path (".python-version" ).read_text ().startswith ("3.10" )
You can’t perform that action at this time.
0 commit comments