Skip to content

Commit 7c25fc1

Browse files
authored
Add CI workflow (#2)
* Test code changes using CI
1 parent a2e4cd1 commit 7c25fc1

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/ci.yml

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