forked from mlco2/codecarbon
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 807 Bytes
/
Copy pathtest-package.yml
File metadata and controls
29 lines (27 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
permissions:
contents: read
name: test-package
on:
pull_request:
paths:
- "codecarbon/**"
- "pyproject.toml"
- "uv.lock"
jobs:
python-test:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # v7
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --python ${{ matrix.python-version }}
- name: Test package
run: uv run --python ${{ matrix.python-version }} task test-package