Skip to content

Commit a14233b

Browse files
Revert "Update ci.yml (#334)" (#556)
This reverts commit ef5fd1f.
1 parent ef5fd1f commit a14233b

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

.github/workflows/ci.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
- name: Set up Python
3737
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3838
with:
39-
python-version: ${{ matrix.python-version }}
40-
41-
- name: Set up environment
39+
python-version: ${{ matrix.python-version }}
40+
41+
- name: Setup dependencies
4242
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
4545
4646
- name: Run pre-commit
4747
if: matrix.pre-commit
@@ -51,15 +51,14 @@ jobs:
5151
- name: Run pytest
5252
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
5353
with:
54-
custom-pytest: uv run --frozen pytest
5554
custom-arguments: --cov --junitxml=junit.xml -o junit_family=legacy
5655

5756
- name: Run benchmarks
58-
uses: CodSpeedHQ/action@63ae6025a0ffee97d7736a37c9192dbd6ed4e75f # v3.4.0
57+
uses: CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3.2.0
5958
if: matrix.codspeed
6059
with:
6160
token: ${{ secrets.CODSPEED_TOKEN }}
62-
run: uv run --frozen pytest --codspeed
61+
run: pytest --codspeed
6362

6463
- name: Upload coverage reports to Codecov
6564
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1

tests/usethis/_integrations/ci/bitbucket/test_bitbucket_schema.py

-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ def test_matches_schema_store(self):
3838
# TIP: go into debug mode to copy-and-paste into updated schema.json
3939
assert local_schema_json == online_schema_json
4040

41-
@pytest.mark.skipif(
42-
bool(os.getenv("CI")),
43-
reason=".python-version re-pinned in CI for test matrix",
44-
)
4541
def test_target_python_version(self):
4642
# If this test fails, we should bump the version in the command in schema.py
4743
assert Path(".python-version").read_text().startswith("3.10")

tests/usethis/_integrations/pre_commit/test_pre_commit_schema.py

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ def test_matches_schema_store(self):
3939
# Compare the JSON
4040
assert local_schema_json == online_schema_json.replace("\r\n", "\n\n")
4141

42-
@pytest.mark.skipif(
43-
bool(os.getenv("CI")),
44-
reason=".python-version re-pinned in CI for test matrix",
45-
)
4642
def test_target_python_version(self):
4743
# If this test fails, we should bump the version in the command in schema.py
4844
assert Path(".python-version").read_text().startswith("3.10")

0 commit comments

Comments
 (0)