Skip to content

Update dependency responses to v0.25.2 #286

Update dependency responses to v0.25.2

Update dependency responses to v0.25.2 #286

Workflow file for this run

name: Python package
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
name: "run tox"
strategy:
matrix:
python-version: ["3.10", 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
env:
CODECOV_TOKEN: "889b90e8-e5a8-4139-aef6-87e6f2e1a0a4"
run: tox
package:
name: "Build & verify package"
runs-on: "ubuntu-latest"
needs: [test]
environment: release
permissions:
id-token: write
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.11"
- name: "Install pep517 and twine"
run: "python -m pip install pep517 twine"
- name: "Build package"
run: "python -m pep517.build --source --binary ."
- name: "List result"
run: "ls -l dist"
- name: "Check long_description"
run: "python -m twine check dist/*"
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1