Skip to content

Bump cryptography from 41.0.0 to 41.0.2 #44

Bump cryptography from 41.0.0 to 41.0.2

Bump cryptography from 41.0.0 to 41.0.2 #44

Workflow file for this run

name: Build
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.8",
"3.9",
"3.10"
]
django-version: [
'>=3.2<3.3',
'>=4.0<4.1',
'>=4.1<4.2',
]
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 }}