Skip to content

Commit

Permalink
Add names to CI targets
Browse files Browse the repository at this point in the history
Now that we have two CI files, add more descriptive names to the CI
targets to identify them easier.
  • Loading branch information
pablogsal committed Apr 12, 2022
1 parent 7d31d1c commit 69053ef
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
check_generated_files:
name: 'Check if generated files are up to date'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -33,6 +34,7 @@ jobs:
fi
test:
name: 'Test suite'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -55,6 +57,7 @@ jobs:
run: tox . -vvv

lint_and_docs:
name: 'Lint and Docs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -81,6 +84,7 @@ jobs:
make docs
valgrind:
name: 'Valgrind & Helgrind'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
name: Build and upload to PyPI

on:
push:
pull_request:
release:
types:
- published

jobs:
build_wheels:
name: Build wheels on Linux
runs-on: ubuntu-20.04
name: Wheel for ${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}-${{matrix.cibw_manylinux}}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
cibw_python: [ "cp37-*", "cp38-*", "cp39-*", "cp310-*"]
cibw_manylinux: [ manylinux2010 ]
cibw_arch: [ "x86_64", "i686" ]

steps:
- uses: actions/checkout@v2

- name: Build wheels
uses: pypa/cibuildwheel@v2.4.0
env:
CIBW_BUILD: ${{ matrix.cibw_python }}
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }}
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest {package}/tests

- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -45,4 +61,4 @@ jobs:

- uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_PASSWORD }}
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,3 @@ skip = "*musllinux*"

[tool.cibuildwheel.linux]
before-all = "yum install -y libunwind-devel"
manylinux-x86_64-image = "manylinux2010"
manylinux-i686-image = "manylinux2010"
manylinux-aarch64-image = "manylinux2010"
manylinux-ppc64le-image = "manylinux2010"
manylinux-s390x-image = "manylinux2010"

0 comments on commit 69053ef

Please sign in to comment.