Skip to content
Snippets Groups Projects
Unverified Commit af2c1e3d authored by David Robertson's avatar David Robertson Committed by GitHub
Browse files

Tidy the building of sdists and wheels (#12051)

* Don't build distribution pkgs in tests.yml
* Run `release-artifacts` on release branches
* Use backend-meta workflow for packaging
parent 1ae492c8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ on: ...@@ -7,7 +7,7 @@ on:
# of things breaking (but only build one set of debs) # of things breaking (but only build one set of debs)
pull_request: pull_request:
push: push:
branches: ["develop"] branches: ["develop", "release-*"]
# we do the full build on tags. # we do the full build on tags.
tags: ["v*"] tags: ["v*"]
...@@ -91,17 +91,7 @@ jobs: ...@@ -91,17 +91,7 @@ jobs:
build-sdist: build-sdist:
name: "Build pypi distribution files" name: "Build pypi distribution files"
runs-on: ubuntu-latest uses: "matrix-org/backend-meta/.github/workflows/packaging.yml@v1"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install wheel
- run: |
python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v2
with:
name: python-dist
path: dist/*
# if it's a tag, create a release and attach the artifacts to it # if it's a tag, create a release and attach the artifacts to it
attach-assets: attach-assets:
......
...@@ -48,24 +48,10 @@ jobs: ...@@ -48,24 +48,10 @@ jobs:
env: env:
PULL_REQUEST_NUMBER: ${{ github.event.number }} PULL_REQUEST_NUMBER: ${{ github.event.number }}
lint-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- run: pip install wheel
- run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v2
with:
name: Python Distributions
path: dist/*
# Dummy step to gate other tests on without repeating the whole list # Dummy step to gate other tests on without repeating the whole list
linting-done: linting-done:
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
needs: [lint, lint-crlf, lint-newsfile, lint-sdist] needs: [lint, lint-crlf, lint-newsfile]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: "true" - run: "true"
...@@ -397,7 +383,6 @@ jobs: ...@@ -397,7 +383,6 @@ jobs:
- lint - lint
- lint-crlf - lint-crlf
- lint-newsfile - lint-newsfile
- lint-sdist
- trial - trial
- trial-olddeps - trial-olddeps
- sytest - sytest
......
Tidy up GitHub Actions config which builds distributions for PyPI.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment