Skip to content

ci: upload code coverage #74

ci: upload code coverage

ci: upload code coverage #74

Workflow file for this run

name: build
on:
push:
tags:
- '*'
branches:
- main
env:
FORCE_COLOR: 1
jobs:
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: python -m pip install build
- run: python -m build -s
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/*.tar.gz
wheels:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-13
- macos-14
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
if: always()
with:
name: wheels-${{ matrix.os }}
path: wheelhouse/*.whl
wheels-cross:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: docker/setup-qemu-action@v3
with:
platforms: all
- uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: aarch64 ppc64le s390x
- uses: actions/upload-artifact@v4
if: always()
with:
name: wheels-cross
path: wheelhouse/*.whl
release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs:
- sdist
- wheels
- wheels-cross
environment:
name: pypi
url: https://pypi.org/p/pkgconf
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
print-hash: true