Skip to content

Commit

Permalink
Add tox
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jul 28, 2023
1 parent a8c9ff1 commit 887942e
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,40 @@
name: Build

on: [workflow_dispatch]
on:
push:
# workflow_dispatch:
pull_request:
branches:
- master
release:
types:
- created
schedule:
- cron: "0 7 * * 1"


jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["cp37", "cp38", "cp39", "cp310", "cp311"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install tox
run: |
pip install --upgrade pip
pip install tox
- name: Run linting
run: |
tox
# TODO:
# publish this if merged to master or a tag
build_wheels:
needs: test
name: Build wheels on ${{ matrix.buildplat[0] }} / ${{ matrix.buildplat[1] }} for ${{ matrix.python }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
Expand Down Expand Up @@ -38,9 +67,12 @@ jobs:
name: ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
path: ./wheelhouse/*.whl

# docs-deploy
publish:
runs-on: ubuntu-latest
needs: build_wheels
needs:
- build_wheels
- docker
steps:
- uses: actions/setup-python@v2
- name: Install dependencies
Expand Down

0 comments on commit 887942e

Please sign in to comment.