Skip to content

modernize, remove python 3.8 support #49

modernize, remove python 3.8 support

modernize, remove python 3.8 support #49

Workflow file for this run

name: Build
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.9",
"3.10",
"3.11"
]
django-version: [
'>=3.2<4.0',
'>=4.1<4.2',
'>=4.2<5.0'
]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -q "Django${{ matrix.django-version }}"
pip install .
pip install -r requirements-test.txt
- name: Lint with flake8
run: flake8 --show-source
- name: Test
run: python manage.py test
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Build and publish to PyPI
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install build packages
run: python -m pip install -U setuptools wheel
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
- name: Publish Package on Pypi
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_SECRET }}