Skip to content

Bump version: 8.3.11 → 8.3.12 #148

Bump version: 8.3.11 → 8.3.12

Bump version: 8.3.11 → 8.3.12 #148

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: ["*"]
tags: ["release/*"]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: wntrblm/nox@2022.8.7
- name: Lint with flake8
run: nox -s lint
- name: Test with pytest
run: nox -s tests-${{ matrix.python-version }} -- --run-slow
pypi-publish:
name: Upload release to PyPI
needs: test
if: startsWith(github.ref, 'refs/tags/release')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cosmic-ray
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: "Build distribution"
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1