Skip to content

Commit 8c7bd86

Browse files
committed
wip: CI workflow
1 parent a2e4cd1 commit 8c7bd86

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
test:
10+
name: Tests Python ${{ matrix.python-version }}
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
python-version: ["3.11", "3.12", "3.13-dev"]
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
allow-prereleases: true
28+
cache: pip
29+
cache-dependency-path: |
30+
**/setup.py
31+
**/requirements*.txt
32+
33+
- name: Install dependencies
34+
run: |
35+
pip install -r requirements.txt -r requirements-dev.txt
36+
37+
- name: Run Testsuite
38+
run: |
39+
pytest

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
],
3030
packages=['parse_document_model'],
3131
include_package_data=True,
32+
python_requires=">=3.9",
3233
install_requires=['pydantic>=2.9.0']
3334
)

0 commit comments

Comments
 (0)