diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..26ff089 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: pip install -r requirements.txt + - name: Run tests + run: make test + - name: Lint check (optional) + run: | + python -m py_compile $(find . -name "*.py" | grep -v __pycache__) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 03f0840..809a3f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,15 +11,15 @@ jsonschema==4.19.0 jsonschema-specifications==2024.10.1 MarkupSafe==3.0.2 packaging==24.2 -pillow==12.3.0 +pillow>=10.0.0 pluggy==1.5.0 PyJWT==2.15.0 -pytest==9.0.3 -pytest-html-reporter==0.2.9 +pytest<9.0 +pytest-html-reporter>=0.2.10 pytest-metadata==3.1.1 pytest-xdist==3.3.1 referencing==0.36.2 -requests==2.33.0 +requests>=2.32.0,<2.33.0 responses==0.24.1 rpds-py==0.24.0 urllib3==2.8.0