Skip to content

Upload Python Package #14

Upload Python Package

Upload Python Package #14

Workflow file for this run

name: Upload Python Package
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: coverage run --source=django_email_verification -m pytest
- uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
publish:
runs-on: ubuntu-latest
needs: [ test ]
environment:
name: pypi
url: https://pypi.org/p/django-email-verification/
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build
run: python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1