Skip to content

Commit b9df92d

Browse files
committed
✅ add test workflow to GitHub Actions for multiple OS and Python versions
1 parent 15449c6 commit b9df92d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/lib-checks.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
uv run codespell --ignore-words-list="groupt,nd,ot,ro,falsy,BU" \
4949
--exclude-file=".github/workflows/codespell.yml"
5050
ruff:
51+
if: ${{ github.event_name != 'schedule' }}
5152
runs-on: ubuntu-latest
5253
steps:
5354
- name: "Checkout Repository"
@@ -93,3 +94,29 @@ jobs:
9394
run: mkdir -p -v .mypy_cache
9495
- name: "Run mypy"
9596
run: uv run mypy --non-interactive discord/
97+
tests:
98+
if: ${{ github.event_name != 'schedule' }}
99+
runs-on: ${{ matrix.os }}
100+
strategy:
101+
matrix:
102+
os: [ubuntu-latest, windows-latest, macos-latest]
103+
python-version: ['3.13', '3.12', '3.11', '3.10']
104+
steps:
105+
- name: "Checkout Repository"
106+
uses: actions/checkout@v4
107+
108+
- name: "Setup Python"
109+
uses: actions/setup-python@v5
110+
with:
111+
python-version: ${{ matrix.python-version }}
112+
113+
- name: "Install uv"
114+
uses: astral-sh/setup-uv@v6
115+
with:
116+
enable-cache: true
117+
118+
- name: Sync dependencies
119+
run: uv sync --no-python-downloads --group dev
120+
121+
- name: "Run tests"
122+
run: uv run tox

0 commit comments

Comments
 (0)