-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 804 Bytes
/
Copy pathci.yml
File metadata and controls
28 lines (26 loc) · 804 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
name: CI
# Hermetic checks only — compile, import, and lint. Playing an actual game needs the
# live platform, so that is left to `python bot.py` locally rather than a flaky
# network-dependent CI job.
on:
push:
branches: [main]
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: "3.13"
- name: Byte-compile
run: python -m compileall -q bot.py dicechess
- name: Import smoke test
run: python -c "import dicechess; from dicechess import BotClient; print('import OK')"
- name: Tests
run: python -m unittest discover -v
- name: Lint
run: pipx run ruff check .