Skip to content

Fix the displayed token expiry values, and use `PASSWORD_RESET_TIMEOU… #23

Fix the displayed token expiry values, and use `PASSWORD_RESET_TIMEOU…

Fix the displayed token expiry values, and use `PASSWORD_RESET_TIMEOU… #23

Workflow file for this run

name: Python tests
on:
- workflow_dispatch
- push
- pull_request
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
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: |
python -m pip install --upgrade pip
python -m pip install 'tox~=4.5.2' 'tox-gh-actions~=3.1.1'
- name: Test with tox
run: tox
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: build-output
path: dist/*.whl
retention-days: 5
release-test:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build-output
path: dist
- name: Publish a Python distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: build-output
path: dist
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}