Skip to content

Commit 7d18d2c

Browse files
committed
tests: Fix test case and workflow
1 parent c5355b4 commit 7d18d2c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ on:
55
schedule:
66
- cron: '0 7 * * 6'
77
jobs:
8-
test-ubuntu:
8+
test:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version-file: 'pyproject.toml'
1215
- name: Install the dependencies
13-
run: python3 -m pip install sphinx -r ./requirements.txt
16+
run: python3 -m pip install .[dev]
1417
- name: Build
1518
run: make test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
"Topic :: Documentation :: Sphinx",
2828
]
2929

30-
requires-python = ">=3.8"
30+
requires-python = ">=3.12"
3131
dependencies = [
3232
"Sphinx >= 4",
3333
"Jinja2",

tests/test_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def test_equal(self):
1515
def new_schema(self) -> Schema:
1616
return Schema(
1717
'cat',
18-
name=Field(referenceable=True, form=Field.Form.LINES),
18+
name=Field(ref=True, form=Field.Forms.LINES),
1919
attrs={
20-
'id': Field(unique=True, referenceable=True, required=True),
20+
'id': Field(uniq=True, ref=True, required=True),
2121
'owner': Field(),
2222
'height': Field(),
2323
'width': Field(),

0 commit comments

Comments
 (0)