Skip to content

Commit

Permalink
Move from Azure Pipelines to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Mar 5, 2022
1 parent 3095017 commit e2f4459
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 41 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build-release.yml
@@ -0,0 +1,46 @@
name: build
on:
pull_request:
# Run builds nightly to catch incompatibilities with new marshmallow releases
schedule:
- cron: "0 0 * * *"
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade pip wheel
- run: pip install tox
- run: tox -elint
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- {name: '3.7-ma3', python: '3.7', os: ubuntu-latest, tox: py37-marshmallow3}
- {name: '3.10-ma3', python: '3.10', os: ubuntu-latest, tox: py310-marshmallow3}
- {name: '3.10-madev', python: '3.10', os: ubuntu-latest, tox: py310-marshmallowdev}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: python -m pip install --upgrade pip wheel
- run: pip install tox
- run: tox -e${{ matrix.tox }}
release:
needs: [lint, tests]
name: PyPI release
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: python -m pip install --upgrade pip wheel
- run: pip install twine
- run: python setup.py sdist bdist_wheel
- run: twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} dist/*
41 changes: 0 additions & 41 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit e2f4459

Please sign in to comment.