Skip to content

Commit 8d2e854

Browse files
committed
use anki's python version in ci
1 parent 3c96e3f commit 8d2e854

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
with:
12+
submodules: true
13+
14+
- uses: actions/setup-python@v6
15+
with:
16+
python-version: "3.9"
17+
cache: pip
18+
19+
- name: Install Qt dependencies
20+
uses: awalsh128/cache-apt-pkgs-action@latest
21+
with:
22+
packages: libegl1 libopengl0 libxkbcommon0
23+
version: 1.0
24+
25+
- name: Install Hatch
26+
run: pip install hatch "virtualenv<20.30"
27+
28+
- name: Run tests
29+
run: hatch run dev:test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040
"mypy>=1.0.0",
4141
"isort",
4242
"pytest",
43-
"aqt[qt6]",
43+
"aqt",
4444
"pyupgrade",
4545
]
4646
python = "3.9"

0 commit comments

Comments
 (0)