Skip to content

Commit

Permalink
Test docs - ok
Browse files Browse the repository at this point in the history
  • Loading branch information
rmk135 committed Jan 27, 2021
1 parent 9bdce2d commit 9efc8ed
Showing 1 changed file with 97 additions and 97 deletions.
194 changes: 97 additions & 97 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,106 +7,106 @@ on:

jobs:

# tests:
# name: Run tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - run: pip install tox
# - run: tox
# env:
# TOXENV: 3.9
#
# linters:
# name: Run linters
# runs-on: ubuntu-latest
# strategy:
# matrix:
# toxenv: [flake8, pydocstyle, mypy, pylint]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - run: pip install tox
# - run: tox
# env:
# TOXENV: ${{ matrix.toxenv }}
#
# build-sdist:
# name: Build source tarball
# needs: [tests, linters]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - run: python setup.py sdist
# - uses: actions/upload-artifact@v2
# with:
# path: ./dist/*
#
# build-wheels:
# name: Build wheels
# needs: [tests, linters]
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - run: pip install cibuildwheel==1.8.0
# - name: Install Visual C++ for Python 2.7 on Windows
# if: runner.os == 'Windows'
# run: |
# choco install vcpython27 -f -y
# - run: cibuildwheel --output-dir wheelhouse
# - uses: actions/upload-artifact@v2
# with:
# path: ./wheelhouse/*.whl
#
# build-wheels-linux-aarch64:
# name: Build wheels (ubuntu-latest-aarch64)
# needs: [tests, linters]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - run: pip install cibuildwheel==1.8.0
# - run: cibuildwheel --archs aarch64 --output-dir wheelhouse
# - uses: actions/upload-artifact@v2
# with:
# path: ./wheelhouse/*.whl
#
# publish:
# name: Publish on PyPI
# needs: [build-sdist, build-wheels, build-wheels-linux-aarch64]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: dist
# - uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install tox
- run: tox
env:
TOXENV: 3.9

linters:
name: Run linters
runs-on: ubuntu-latest
strategy:
matrix:
toxenv: [flake8, pydocstyle, mypy, pylint]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install tox
- run: tox
env:
TOXENV: ${{ matrix.toxenv }}

build-sdist:
name: Build source tarball
needs: [tests, linters]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: python setup.py sdist
- uses: actions/upload-artifact@v2
with:
path: ./dist/*

build-wheels:
name: Build wheels
needs: [tests, linters]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install cibuildwheel==1.8.0
- name: Install Visual C++ for Python 2.7 on Windows
if: runner.os == 'Windows'
run: |
choco install vcpython27 -f -y
- run: cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build-wheels-linux-aarch64:
name: Build wheels (ubuntu-latest-aarch64)
needs: [tests, linters]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- uses: actions/setup-python@v2
with:
python-version: 3.9
- run: pip install cibuildwheel==1.8.0
- run: cibuildwheel --archs aarch64 --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

publish:
name: Publish on PyPI
needs: [build-sdist, build-wheels, build-wheels-linux-aarch64]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

publish-docs:
name: Publish docs
# needs: [publish]
needs: [publish]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 9efc8ed

Please sign in to comment.