Skip to content

Bump hynek/build-and-inspect-python-package from 2.17.0 to 2.18.0 in the github-actions group across 1 directory #161

Bump hynek/build-and-inspect-python-package from 2.17.0 to 2.18.0 in the github-actions group across 1 directory

Bump hynek/build-and-inspect-python-package from 2.17.0 to 2.18.0 in the github-actions group across 1 directory #161

Workflow file for this run

name: Test
on:
push:
branches:
- main
- "test-me-*"
pull_request:
branches:
- "*"
permissions: {}
env:
FORCE_COLOR: 1
# Cancel running jobs for the same workflow and branch.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Build and Check Package
uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0
test:
needs: [package]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
os: [ubuntu-latest, macos-latest] # , windows-latest] # Windows tests will fail.
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Download Package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: Packages
path: dist
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install tox
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
- name: Test
shell: bash
run: |
tox run -e py --installpkg `find dist/*.tar.gz`