bump #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Py ${{ matrix.python }} / Django ${{ matrix.django }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ['3.9', '3.10', '3.11', '3.12'] | |
django: ['4.2'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade setuptools | |
pip install --upgrade Django~=${{ matrix.django }} | |
pip install --upgrade pytz | |
- name: Test build | |
run: | | |
python setup.py -q build | |
- name: Run Tests | |
run: | | |
export PYTHONWARNINGS="default" | |
make test | |
coverage: | |
name: Coverage / Py ${{ matrix.python }} / Django ${{ matrix.django }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ['3.12'] | |
django: ['4.2'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade Django~=${{ matrix.django }} | |
pip install --upgrade pytz | |
pip install --upgrade coveralls | |
- name: Run Tests | |
run: | | |
coverage run --source=. runtests.py | |
- name: Submit to coveralls | |
env: | |
COVERALLS_FLAG_NAME: run-${{ matrix.python }}-${{ matrix.django }} | |
COVERALLS_PARALLEL: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
coveralls --service=github | |
coveralls --finish |