diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-24 21:01:55 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-25 06:22:31 -0500 |
| commit | 6c802eabcc79c0995ea7bde307527cf13f5f6a8c (patch) | |
| tree | 9a7c1ec3e31fdcbe5e54753bab4e1d8ec8ffaa84 /.github/workflows/kit.yml | |
| parent | 84cbf083a18a814c501eecb450d7ac4126e74054 (diff) | |
| download | python-coveragepy-git-6c802eabcc79c0995ea7bde307527cf13f5f6a8c.tar.gz | |
build: make yaml syntax more uniform
Diffstat (limited to '.github/workflows/kit.yml')
| -rw-r--r-- | .github/workflows/kit.yml | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index 437e7d31..854b4f29 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -4,7 +4,7 @@ # Based on: # https://github.com/joerick/cibuildwheel/blob/master/examples/github-deploy.yml -name: Build kits +name: "Kits" on: workflow_dispatch: @@ -15,88 +15,91 @@ defaults: jobs: build_wheels: - name: Build wheels on ${{ matrix.os }} + name: "Build wheels on ${{ matrix.os }}" runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: + - ubuntu-latest + - windows-latest + - macos-latest fail-fast: false steps: - - name: Check out the repo + - name: "Check out the repo" uses: actions/checkout@v2 - - name: Install Python 3.7 + - name: "Install Python 3.7" uses: actions/setup-python@v2 with: python-version: "3.7" - - name: Install cibuildwheel + - name: "Install cibuildwheel" run: | python -m pip install -c requirements/pins.pip cibuildwheel - - name: Install Visual C++ for Python 2.7 + - name: "Install Visual C++ for Python 2.7" if: runner.os == 'Windows' run: | choco install vcpython27 -f -y - - name: Build wheels + - name: "Build wheels" env: # Don't build wheels for PyPy. CIBW_SKIP: pp* run: | python -m cibuildwheel --output-dir wheelhouse - - name: Upload wheels + - name: "Upload wheels" uses: actions/upload-artifact@v2 with: name: dist path: ./wheelhouse/*.whl build_sdist: - name: Build source distribution + name: "Build source distribution" runs-on: ubuntu-latest steps: - - name: Check out the repo + - name: "Check out the repo" uses: actions/checkout@v2 - - name: Install Python 3.7 + - name: "Install Python 3.7" uses: actions/setup-python@v2 with: python-version: "3.7" - - name: Build sdist + - name: "Build sdist" run: | python setup.py sdist - - name: Upload sdist + - name: "Upload sdist" uses: actions/upload-artifact@v2 with: name: dist path: dist/*.tar.gz build_pypy: - name: Build PyPy wheels + name: "Build PyPy wheels" runs-on: ubuntu-latest steps: - - name: Check out the repo + - name: "Check out the repo" uses: actions/checkout@v2 - - name: Install PyPy + - name: "Install PyPy" uses: actions/setup-python@v2 with: python-version: "pypy3" - - name: Install requirements + - name: "Install requirements" run: | pypy3 -m pip install -r requirements/wheel.pip - - name: Build wheels + - name: "Build wheels" run: | pypy3 setup.py bdist_wheel --python-tag pp36 pypy3 setup.py bdist_wheel --python-tag pp37 - - name: Upload wheels + - name: "Upload wheels" uses: actions/upload-artifact@v2 with: name: dist |
