Skip to content

feat: modernize packaging and ci #1

feat: modernize packaging and ci

feat: modernize packaging and ci #1

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [master, development]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
python -m pip install --upgrade "pip<25" "setuptools>=61" wheel
python -m pip install .
if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 7) else 1)"; then
python -m pip install "pytest>=7,<9"
else
python -m pip install "pytest>=6.2,<7"
fi
- name: Fetch regions manifest for endpoint tests
run: |
python -c "from contentstack_utils.region_refresh import refresh_regions; refresh_regions(silent=True)"
- name: Verify import without undeclared deps
run: |
python -c "from contentstack_utils import Utils, Options; print('import ok')"
- name: Run tests
run: pytest tests/