Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jul 31, 2023
1 parent 14e2a53 commit ae2fc65
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 133 deletions.
124 changes: 0 additions & 124 deletions .github/workflows/ci.yml

This file was deleted.

64 changes: 64 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Build

on: [push]

jobs:
# TODO:
# publish this if merged to master or a tag
build_wheels:
name: Build wheels on ${{ matrix.buildplat[0] }} / ${{ matrix.buildplat[1] }} for ${{ matrix.python }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
matrix:
buildplat:
- [ubuntu-20.04, manylinux_x86_64]
- [ubuntu-20.04, musllinux_x86_64]
- [macos-12, macosx_*]
- [windows-2019, win_amd64]
- [windows-2019, win32]
python: ["cp37", "cp38", "cp39", "cp310", "cp311"]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: git status && git tag --list && pwd
- uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl

publish:
runs-on: ubuntu-latest
needs: build_wheels
steps:
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- uses: actions/download-artifact@v2
with:
path: artifacts
- name: Publish artifacts
env:
TWINE_USERNAME: secrets.TWINE_USERNAME
TWINE_PASSWORD: secrets.TWINE_PASSWORD
TWINE_REPOSITORY_URL: secrets.TWINE_REPOSITORY_URL
shell: bash
working-directory: artifacts
run: |
ls -alR
for i in $( ls ); do
cat $i/$ARTIFACT
done
9 changes: 0 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ toxworkdir = {toxinidir}/.tox
passenv =
DOCKER_*
GENERATE_GROUNDTRUTH
PYTEST_*
# This adds the tests directory to the python path so we can import the test
# utilities as needed.
setenv =
Expand Down Expand Up @@ -139,11 +138,3 @@ parallel = True

[coverage:xml]
output = .tox/coverage/py_coverage.xml

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311

0 comments on commit ae2fc65

Please sign in to comment.