Skip to content

Bump requests from 2.31.0 to 2.32.2 #299

Bump requests from 2.31.0 to 2.32.2

Bump requests from 2.31.0 to 2.32.2 #299

Workflow file for this run

name: Publish Python package
on:
push:
branches:
- main
- master
pull_request:
jobs:
publish:
name: Build and publish python packages
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: get release info
id: release_info
run: |
version="$(awk '/^## / { print tolower($2) }' CHANGELOG.md | head -1)"
echo "::set-output name=version::$version"
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Build dist file
run: |
python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release_info.outputs.version != 'unreleased'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}