-
-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (38 loc) · 1.18 KB
/
Copy pathpython-unittest.yml
File metadata and controls
47 lines (38 loc) · 1.18 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: JukeBot CI Full
on:
push:
branches:
- "main"
pull_request:
branches:
- "**"
jobs:
unit-tests:
name: Unittest Python
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v9.0.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
# - name: Cache dependencies
# uses: actions/cache@v6
# with:
# path: ~/.cache/uv/virtualenvs
# key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
# restore-keys: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
- name: Install dependencies
run: uv sync --frozen --no-dev
- name: Launch unit test
run: uv run task tests
env:
CI: true