|
1 | 1 | name: Tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - - push |
5 | | - - pull_request |
| 4 | + push: |
| 5 | + pull_request: |
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | tests: |
9 | 9 | strategy: |
10 | 10 | matrix: |
11 | 11 | platform: [ubuntu-latest, windows-latest, macos-latest] |
12 | | - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
| 12 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
13 | 13 | runs-on: ${{ matrix.platform }} |
14 | 14 | steps: |
15 | 15 | - uses: actions/checkout@v4 |
16 | 16 |
|
| 17 | + - name: Remove existing venv (cross-platform) |
| 18 | + shell: bash |
| 19 | + run: rm -rf .venv |
| 20 | + |
17 | 21 | - name: Install uv |
18 | 22 | uses: astral-sh/setup-uv@v5 |
19 | 23 | with: |
20 | 24 | python-version: ${{ matrix.python-version }} |
21 | 25 | enable-cache: true |
22 | 26 |
|
23 | | - - name: Install dependencies with uv |
24 | | - run: | |
25 | | - uv venv |
26 | | - uv pip install -e .[dev] |
27 | | - echo "Dependencies installed successfully" |
28 | | -
|
29 | 27 | - name: Setup git |
30 | 28 | run: | |
31 | 29 | git config --global user.name "Search-query test" |
32 | 30 | git config --global user.email "actions@users.noreply.github.com" |
33 | 31 | git config --global url.https://github.com/.insteadOf git://github.com/ |
34 | 32 |
|
| 33 | + - name: Install dependencies with uv |
| 34 | + run: uv pip install -e .[dev] |
| 35 | + |
35 | 36 | - name: Run tests with uv |
36 | 37 | run: uv run pytest test -vv |
37 | 38 |
|
38 | 39 | pip-install: |
39 | 40 | strategy: |
40 | 41 | matrix: |
41 | 42 | platform: [ubuntu-latest, windows-latest, macos-latest] |
42 | | - python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] |
| 43 | + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
43 | 44 | runs-on: ${{ matrix.platform }} |
44 | 45 | steps: |
45 | 46 | - uses: actions/checkout@v4 |
46 | 47 |
|
47 | 48 | - name: Set up Python ${{ matrix.python-version }} |
48 | | - uses: actions/setup-python@v4 |
| 49 | + uses: actions/setup-python@v5 |
49 | 50 | with: |
50 | 51 | python-version: ${{ matrix.python-version }} |
51 | 52 |
|
52 | | - - name: Install via pip |
53 | | - run: | |
54 | | - pip install -e .[dev] |
55 | | - pip list |
| 53 | + - name: Upgrade pip tooling |
| 54 | + run: python -m pip install -U pip setuptools wheel |
56 | 55 |
|
57 | 56 | - name: Setup git |
58 | 57 | run: | |
59 | 58 | git config --global user.name "Search-query test" |
60 | 59 | git config --global user.email "actions@users.noreply.github.com" |
61 | 60 | git config --global url.https://github.com/.insteadOf git://github.com/ |
62 | 61 |
|
| 62 | + - name: Install via pip |
| 63 | + run: | |
| 64 | + pip install -e .[dev] |
| 65 | + pip list |
| 66 | +
|
63 | 67 | - name: Run tests |
64 | 68 | run: pytest test -vv |
0 commit comments