Skip to content

Update GitHub actions #24

Update GitHub actions

Update GitHub actions #24

Workflow file for this run

name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.8'
- '3.10'
- '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\npip install tox tox-gh-actions\n"
- name: 'Test with tox'
run: tox
- uses: casperdcl/deploy-pypi@v2
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.python-version == '2.7'
with:
password: ${{ secrets.pypi_token }}
build: true