Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #194 from googlefonts/debug-ci
Browse files Browse the repository at this point in the history
Debug CI
  • Loading branch information
madig committed Aug 9, 2021
2 parents 78291f2 + 879370c commit 6812ae4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
42 changes: 36 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:


jobs:
build:
build-binaries:
name: Build wheel ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -18,28 +18,59 @@ jobs:
os: [ "ubuntu-20.04", "windows-2019", "macos-11" ]
env:
CIBW_ARCHS: auto64
# macOS: Explicitly list ARM variants here for cross-compilation.
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_SKIP: pp*
CIBW_ENVIRONMENT: CU2QU_WITH_CYTHON="true"
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: "3.x"
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.0.1
run: python -m pip install -U pip cibuildwheel==2.0.1
- name: Build wheels
run: python -m cibuildwheel --output-dir dist
- uses: actions/upload-artifact@v2
with:
name: wheels-${{ matrix.os }}
path: dist/*.whl

build-pure:
name: Build sdist and pure wheel
runs-on: "ubuntu-20.04"
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
# Use PyPy just so we can test the package on it.
- uses: actions/setup-python@v2
with:
python-version: 'pypy-3.7'
- name: Install packaging tooling
run: python -m pip install -U pip setuptools wheel
- name: Build sdist and pure wheel
run: python setup.py sdist bdist_wheel
- name: Prepare for testing
run: python -m pip install pytest -r requirements.txt dist/*.whl
- name: Test
run: pytest
- uses: actions/upload-artifact@v2
with:
name: wheels-pure
path: |
dist/*.whl
dist/*.zip
deploy:
# only run if the commit is tagged...
if: startsWith(github.ref, 'refs/tags/v')
# ... and all build jobs completed successfully
needs: [build]
needs: [build-binaries, build-pure]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -101,5 +132,4 @@ jobs:
else
echo "DEBUG: This is a final release"
fi
python setup.py sdist
twine upload dist/wheels-*/*.whl dist/*.zip
twine upload dist/wheels-*/*.whl dist/wheels-*/*.zip
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ build-backend = "setuptools.build_meta"

[tool.cibuildwheel]
test-requires = "pytest"
before-test = "pip install -r requirements.txt"
test-command = "pytest {project}/tests"

0 comments on commit 6812ae4

Please sign in to comment.