|
1 | | -name: test |
| 1 | +name: Test |
2 | 2 |
|
3 | | -# Controls when the action will run. |
4 | 3 | on: |
5 | | - # Triggers the workflow on push events but only for the main branch. |
6 | 4 | push: |
7 | | - # Allows you to run this workflow manually from the Actions tab. |
8 | 5 | workflow_dispatch: |
9 | 6 |
|
10 | 7 | jobs: |
11 | 8 | test: |
12 | | - # The type of runner that the job will run on. |
13 | 9 | runs-on: ubuntu-latest |
14 | | - # Configures the build to use the latest version of Python 3. |
15 | 10 | strategy: |
16 | 11 | matrix: |
17 | | - python-version: [3.14.x] |
| 12 | + python-version: |
| 13 | + - "3.14.x" |
18 | 14 |
|
19 | 15 | steps: |
20 | | - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can |
21 | | - # access it. |
22 | | - - uses: actions/checkout@v3 |
| 16 | + - uses: actions/checkout@main |
23 | 17 |
|
24 | 18 | - name: Switch to current branch |
25 | 19 | run: git checkout ${{ env.BRANCH }} |
26 | 20 |
|
27 | 21 | - name: Set up Python ${{ matrix.python-version }} |
28 | | - uses: actions/setup-python@v1 |
| 22 | + uses: actions/setup-python@main |
29 | 23 | with: |
30 | 24 | python-version: ${{ matrix.python-version }} |
31 | 25 |
|
32 | | - - name: Install Poetry |
33 | | - run: | |
34 | | - python -m pip install --upgrade pip |
35 | | - pip install poetry |
| 26 | + - name: Install uv |
| 27 | + uses: astral-sh/setup-uv@main |
36 | 28 |
|
37 | | - - name: Install Python dependencies with Poetry |
38 | | - run: | |
39 | | - poetry install |
| 29 | + - name: Install the project |
| 30 | + run: uv sync --all-extras --dev |
40 | 31 |
|
41 | | - - name: Run unit tests with Pytest |
42 | | - run: poetry run coverage run --source=src/boruvkas_algorithm -m pytest -v |
| 32 | + - name: Run tests with Pytest |
| 33 | + run: uv run coverage run --source=src/boruvkas_algorithm/ -m pytest -v |
43 | 34 |
|
44 | 35 | - name: Get code coverage report |
45 | | - run: poetry run coverage report -m |
| 36 | + run: uv run coverage report -m |
0 commit comments