Skip to content

Commit

Permalink
wip: CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
avvertix committed Sep 17, 2024
1 parent a2e4cd1 commit 8c7bd86
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
name: Tests Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
python-version: ["3.11", "3.12", "3.13-dev"]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: |
**/setup.py
**/requirements*.txt
- name: Install dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
- name: Run Testsuite
run: |
pytest
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
],
packages=['parse_document_model'],
include_package_data=True,
python_requires=">=3.9",
install_requires=['pydantic>=2.9.0']
)

0 comments on commit 8c7bd86

Please sign in to comment.