Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to baipp #524

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 24 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ on:
- main

jobs:
build:
check-package:
name: Build & inspect our package.
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
RonnyPfannschmidt marked this conversation as resolved.
Show resolved Hide resolved
- uses: hynek/build-and-inspect-python-package@v2
test:
needs: [check-package]
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -87,9 +97,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Download built packages from the check-package job.
uses: actions/download-artifact@v4
with:
fetch-depth: 0

name: Packages
path: dist
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
Expand All @@ -103,11 +115,13 @@ jobs:

- name: Test without coverage
if: "! matrix.use_coverage"
run: "tox -e ${{ matrix.tox_env }}"
shell: bash
run: "tox run -e ${{ matrix.tox_env }} --installpkg dist/*.whl"

- name: Test with coverage
if: "matrix.use_coverage"
run: "tox -e ${{ matrix.tox_env }}-coverage"
shell: bash
run: "tox run -e ${{ matrix.tox_env }}-coverage --installpkg dist/*.whl"

- name: Upload coverage
if: matrix.use_coverage && github.repository == 'pytest-dev/pluggy'
Expand All @@ -119,27 +133,17 @@ jobs:
verbose: true

deploy:
needs: [check-package]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'pytest-dev/pluggy'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
- name: Download built packages from the check-package job.
uses: actions/download-artifact@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade build

- name: Build package
run: python -m build --sdist --wheel --outdir dist/

name: Packages
path: dist
- name: Publish package
uses: pypa/[email protected]
with:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
requires = [
# sync with setup.py until we discard non-pep-517/518
"setuptools>=65.0",
"setuptools-scm[toml]>=8.0",
]
Expand All @@ -9,7 +8,8 @@ build-backend = "setuptools.build_meta"
[project]
name = "pluggy"
license = {text = "MIT"}
authors = [{name = "Holger Krekel", email = "[email protected]"}]
authors = [{name = "Holger Krekel"}]
maintainers = [{name="pytest core team", email="[email protected]"}]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
Expand Down
Loading