|
25 | 25 | matrix:
|
26 | 26 | # os: [ubuntu-latest, windows-latest, macos-latest]
|
27 | 27 | python-version: [3.9, "3.10", 3.11, 3.12]
|
28 |
| - node-version: [18] |
| 28 | + node-version: [20] |
29 | 29 |
|
30 | 30 | runs-on: ubuntu-latest
|
31 | 31 |
|
@@ -57,51 +57,26 @@ jobs:
|
57 | 57 | # ------------------------------------------------------------------------
|
58 | 58 | # Python
|
59 | 59 |
|
60 |
| - - name: Set up Python ${{ matrix.python-version }} |
61 |
| - uses: actions/setup-python@v4 |
62 |
| - with: |
63 |
| - python-version: ${{ matrix.python-version }} |
| 60 | + - name: Set up uv |
| 61 | + run: curl -LsSf https://astral.sh/uv/install.sh | sh |
64 | 62 |
|
65 |
| - - uses: actions/cache@v3 |
66 |
| - id: cached-python-env |
67 |
| - with: |
68 |
| - path: ${{ env.pythonLocation }} |
69 |
| - key: > |
70 |
| - python |
71 |
| - ${{ runner.os }} |
72 |
| - python-${{ matrix.python-version }} |
73 |
| - ${{ hashFiles('pyproject.toml') }} |
74 |
| - ${{ hashFiles('requirements*') }} |
75 |
| -
|
76 |
| - - name: Install dependencies |
77 |
| - if: steps.cached-python-env.outputs.cache-hit != 'true' |
78 |
| - run: pip install -r requirements-dev.lock |
| 63 | + - name: Set up Python ${{ matrix.python-version }} |
| 64 | + run: uv python install ${{ matrix.python-version }} |
79 | 65 |
|
80 |
| - - name: Install Hatch |
81 |
| - run: pip install --upgrade hatch |
| 66 | + - name: Install the project |
| 67 | + run: uv sync --all-extras --dev |
82 | 68 |
|
83 | 69 | - name: Print Python info
|
84 | 70 | run: |
|
85 |
| - which python |
86 |
| - python --version |
87 |
| - which pip |
88 |
| - pip --version |
89 |
| - pip freeze |
90 |
| -
|
91 |
| - # ------------------------------------------------------------------------ |
92 |
| - # Test |
93 |
| - |
94 |
| - - name: Build package |
95 |
| - run: hatch build |
96 |
| - |
97 |
| - - name: Install package |
98 |
| - run: | |
99 |
| - pip install dist/*.tar.gz |
100 |
| - pip freeze |
| 71 | + uv run which python |
| 72 | + uv run python --version |
| 73 | + uv run which pip |
| 74 | + uv pip --version |
| 75 | + uv pip freeze |
101 | 76 |
|
102 | 77 | - name: Run tests
|
103 | 78 | run: |
|
104 |
| - pytest . |
| 79 | + uv run pytest . |
105 | 80 | just report
|
106 | 81 |
|
107 | 82 | - name: Codecov
|
|
0 commit comments