Commit 8d75e4ad authored by Martin Larralde's avatar Martin Larralde
Browse files

Merge all Actions workflows into `test.yml`

parent 85a6d1e0
name: Changelog
on:
push:
tags:
- v*.*.*
jobs:
chandler:
environment: GitHub Releases
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Set up Ruby 2.7
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install chandler gem
run: gem install chandler
- name: Update releases messages
run: chandler push --github=${{ github.repository }} --changelog="CHANGELOG.md"
env:
CHANDLER_GITHUB_API_TOKEN: ${{ secrets.CHANDLER_GITHUB_API_TOKEN }}
name: Package
on:
push:
tags:
- v*.*.*
jobs:
wheel:
runs-on: ubuntu-latest
name: Build universal wheel
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Setup Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build wheel
run: python setup.py bdist_wheel
- name: Store built wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
sdist:
runs-on: ubuntu-latest
name: Build source distribution
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build wheel distribution
run: python setup.py sdist
- name: Store built wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
upload:
environment: PyPI
runs-on: ubuntu-latest
name: Upload
needs:
- sdist
- wheel
steps:
- name: Download built distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish distributions to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: false
......@@ -91,10 +91,6 @@ jobs:
python-impl: CPython
- python-version: "3.10"
python-release: v3.10
python-impl: CPython
- python-version: pypy-3.6
python-release: v3.6
python-impl: PyPy
- python-version: pypy-3.7
python-release: v3.7
python-impl: PyPy
......@@ -132,3 +128,88 @@ jobs:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
codecov_curl_args: "--globoff"
wheel:
runs-on: ubuntu-latest
name: Build universal wheel
needs:
- test-osx
- test-linux
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Setup Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build wheel
run: python setup.py bdist_wheel
- name: Store built wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
sdist:
runs-on: ubuntu-latest
name: Build source distribution
needs:
- test-osx
- test-linux
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install build requirements
run: python -m pip install -r .github/workflows/requirements.txt
- name: Build wheel distribution
run: python setup.py sdist
- name: Store built wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*
upload:
environment: PyPI
runs-on: ubuntu-latest
name: Upload
needs:
- sdist
- wheel
steps:
- name: Download built distributions
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Publish distributions to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: false
release:
environment: GitHub Releases
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
name: Release
needs: upload
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Release a Changelog
uses: rasmus-saks/release-a-changelog-action@v1.0.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment