Skip to content

Commit e1dfe21

Browse files
committed
Fixing CI/CD
1 parent c3a92ab commit e1dfe21

2 files changed

Lines changed: 18 additions & 20 deletions

File tree

.github/workflows/lint.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,21 @@ jobs:
1919
with:
2020
python-version: "3.12"
2121

22-
- name: Install uv
23-
uses: astral-sh/setup-uv@v6
24-
25-
- name: Cache dependencies
22+
- name: Cache pip dependencies
2623
uses: actions/cache@v4
2724
with:
28-
path: ~/.cache/uv
29-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
25+
path: ~/.cache/pip
26+
key: pip-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
3027
restore-keys: |
31-
uv-${{ runner.os }}-
28+
pip-${{ runner.os }}-
3229
3330
- name: Install dependencies
34-
run: uv sync --extra dev
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install -e ".[dev]"
3534
3635
- name: Run ruff
37-
run: uv run ruff check .
36+
run: ruff check .
3837

3938
- name: Run ruff format check
40-
run: uv run ruff format --check .
39+
run: ruff format --check .

.github/workflows/test.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,21 @@ jobs:
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

25-
- name: Install uv
26-
uses: astral-sh/setup-uv@v6
27-
28-
- name: Cache dependencies
25+
- name: Cache pip dependencies
2926
uses: actions/cache@v4
3027
with:
31-
path: ~/.cache/uv
32-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
28+
path: ~/.cache/pip
29+
key: pip-${{ runner.os }}-${{ hashFiles('pyproject.toml') }}
3330
restore-keys: |
34-
uv-${{ runner.os }}-
31+
pip-${{ runner.os }}-
3532
3633
- name: Install dependencies
37-
run: uv sync --extra dev,test
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install -e ".[dev,test]"
3837
3938
- name: Run tests
40-
run: uv run pytest tests/ -v
39+
run: pytest tests/ -v
4140

4241
- name: Run datest CLI
43-
run: uv run datest --version
42+
run: datest --version

0 commit comments

Comments
 (0)