Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move from Azure Pipelines to GitHub Actions #751

Merged
merged 1 commit into from Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/build-release.yml
@@ -0,0 +1,50 @@
name: build
on:
pull_request:
# Run builds nightly to catch incompatibilities with new marshmallow releases
schedule:
- cron: "0 0 * * *"
jobs:
lint:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use pre-commit.ci like in webargs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could. TBH, I followed the webargs thread from afar. This PR is based on the setup I use in for flask-smorest so it was easy for me to adapt.

We can use pre-commit.ci in a later phase. I'd like to merge this sooner to fix CI tests asap.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good. my comments are not blocking, so go ahead and merge when you feel it's right

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
- name: install requirements
run: python -m pip install build twine
- name: build dists
run: python -m build
- name: check package metadata
run: twine check dist/*
- name: publish
run: twine upload -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} dist/*
41 changes: 0 additions & 41 deletions azure-pipelines.yml

This file was deleted.