Removes support for 3.12 #207
This file contains 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: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
- gha | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Build | |
run: python3 setup.py sdist | |
- name: Store artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: dist | |
path: dist/ | |
test: | |
runs-on: ubuntu-20.04 | |
name: Test | |
needs: [build] | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox tox-gh-actions coveralls | |
- name: Run Tox on All Supported Django and Python Versions | |
run: tox | |
- name: Generate Coverage Report | |
run: | | |
mkdir -p test-results/ | |
tox -e coverage | |
- name: Send results to Coveralls | |
run: COVERALLS_REPO_TOKEN=Q58WdUuZOi89XHyDeDsGE2lxUGQ2IfqP3 coveralls | |
- name: Store test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-results | |
path: test-results/ |