Skip to content

Commit 61b2c13

Browse files
committed
update coverage to be non-matrix, and to use uv
1 parent 190717c commit 61b2c13

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,26 +81,25 @@ jobs:
8181
pylint_output_*.txt
8282
8383
coverage:
84-
runs-on: ${{ matrix.os }}
85-
strategy:
86-
matrix:
87-
os: [ubuntu-latest]
88-
python-version: ["3.11"]
89-
84+
runs-on: unbuntu-latest
9085
steps:
9186
- name: Checkout code
9287
uses: actions/checkout@v4
9388

94-
- name: Set up Python ${{ matrix.python-version }}
89+
- name: Set up Python 3.12
9590
uses: actions/setup-python@v5
9691
with:
97-
python-version: ${{ matrix.python-version }}
98-
cache: "pip"
92+
python-version: "3.12"
93+
94+
- name: Install uv
95+
uses: astral-sh/setup-uv@v1
96+
with:
97+
enable-cache: true
9998

10099
- name: Install dependencies
101100
run: |
102-
python -m pip install --upgrade pip
103-
pip install .[dev]
101+
uv venv
102+
uv pip install .[dev]
104103
105104
- name: pytest coverage and custom coverage HTML report
106105
run: |
@@ -109,7 +108,7 @@ jobs:
109108
110109
pytest -v --cov=rattlesnake --cov-report=html --cov-report=xml --cov-report=term-missing
111110
112-
python src/rattlesnake/cicd/report_pytest.py \
111+
uv run python src/rattlesnake/cicd/report_pytest.py \
113112
--input_file coverage.xml \
114113
--output_file pytest_report.html \
115114
--timestamp "$TIMESTAMP" \

0 commit comments

Comments
 (0)