Skip to content

Update test build pipeline to 3.11 #84

Update test build pipeline to 3.11

Update test build pipeline to 3.11 #84

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dothttp-req
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install -r all_requirements.txt
# unit tests need python-magic
# package in pypi woudn't need python-magic
python -m pip install python-magic
# for integration tests
docker run -d -p 8000:80 kennethreitz/httpbin
python -m unittest
- name: Build Distribution
run: |
# install prerequisites
python -m pip install --upgrade pip
pip install setuptools wheel twine
# build distribution
python setup.py sdist bdist_wheel
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1