Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #30

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #30

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
release:
types: published
jobs:
tar_gz:
name: Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python setup.py sdist
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist
whl:
name: Build / ${{ matrix.os }} / Python 3.${{ matrix.minor }}
strategy:
fail-fast: false
matrix:
os: [macOS, Ubuntu, Windows]
minor: [7, 8, 9, 10, 11]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pypa/[email protected]
with:
output-dir: dist
env:
CIBW_ARCHS_MACOS: all
CIBW_ENVIRONMENT: "CFLAGS='-Werror -Wno-deprecated-declarations'"
CIBW_BUILD: cp3${{ matrix.minor }}-*
# CIBW_BEFORE_TEST: pip install -r {project}/requirements.txt
# CIBW_TEST_COMMAND: pytest {project}
- uses: actions/upload-artifact@v2
with:
name: dist
path: dist
upload:
name: Publish
if: github.event_name == 'release' && github.event.action == 'published'
needs: [tar_gz, whl]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
name: dist
path: dist
- uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_TOKEN }}
skip_existing: true