@@ -40,32 +40,29 @@ jobs:
4040 - name : " Setup Python"
4141 uses : actions/setup-python@v6
4242 with :
43- python-version : " 3.14 "
44- - name : " Install uv "
45- uses : astral-sh/setup -uv@v7
43+ python-version : " 3.13 "
44+ - name : " Setup UV "
45+ uses : ./.github/actions/sync -uv
4646 with :
47- enable-cache : true
48- - name : Sync dependencies
49- run : uv sync --no-python-downloads --group dev
47+ groups : ' dev'
5048 - name : " Run codespell"
5149 run :
5250 uv run codespell --ignore-words-list="groupt,nd,ot,ro,falsy,BU" \
5351 --exclude-file=".github/workflows/codespell.yml"
5452 ruff :
53+ if : ${{ github.event_name != 'schedule' }}
5554 runs-on : ubuntu-latest
5655 steps :
5756 - name : " Checkout Repository"
5857 uses : actions/checkout@v5
5958 - name : " Setup Python"
6059 uses : actions/setup-python@v6
6160 with :
62- python-version : " 3.14 "
63- - name : " Install uv "
64- uses : astral-sh/setup -uv@v7
61+ python-version : " 3.13 "
62+ - name : " Setup UV "
63+ uses : ./.github/actions/sync -uv
6564 with :
66- enable-cache : true
67- - name : Sync dependencies
68- run : uv sync --no-python-downloads --group dev
65+ groups : ' dev'
6966 - name : " Run ruff linter check"
7067 run : uv run ruff check .
7168 - name : " Run ruff formatter check"
@@ -79,13 +76,11 @@ jobs:
7976 - name : " Setup Python"
8077 uses : actions/setup-python@v6
8178 with :
82- python-version : " 3.14 "
83- - name : " Install uv "
84- uses : astral-sh/setup -uv@v7
79+ python-version : " 3.13 "
80+ - name : " Setup UV "
81+ uses : ./.github/actions/sync -uv
8582 with :
86- enable-cache : true
87- - name : Sync dependencies
88- run : uv sync --no-python-downloads --group dev
83+ groups : ' dev'
8984 - name : " Setup cache"
9085 id : cache-mypy
9186 uses : actions/cache@v4
9792 run : mkdir -p -v .mypy_cache
9893 - name : " Run mypy"
9994 run : uv run mypy --non-interactive discord/
95+ tests :
96+ if : ${{ github.event_name != 'schedule' }}
97+ runs-on : ${{ matrix.os }}
98+ strategy :
99+ matrix :
100+ os : [ubuntu-latest, windows-latest, macos-latest]
101+ python-version : ['3.13', '3.12', '3.11', '3.10']
102+ steps :
103+ - name : " Checkout Repository"
104+ uses : actions/checkout@v5
105+
106+ - name : " Setup Python"
107+ uses : actions/setup-python@v6
108+ with :
109+ python-version : ${{ matrix.python-version }}
110+
111+ - name : " Setup UV"
112+ uses : ./.github/actions/sync-uv
113+ with :
114+ groups : ' dev'
115+
116+ - name : " Run tests"
117+ run : uv run tox
0 commit comments