-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Travis in favor of GHA. Remove zeus as well. Co-authored-by: Jan Michael Auer <mail@jauer.org>
- Loading branch information
Showing
9 changed files
with
205 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release/** | ||
|
||
pull_request: | ||
|
||
jobs: | ||
dist: | ||
name: distribution packages | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-16.04 | ||
|
||
if: "startsWith(github.ref, 'refs/heads/release/')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- run: | | ||
pip install virtualenv | ||
make dist | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.sha }} | ||
path: dist/* | ||
|
||
docs: | ||
timeout-minutes: 10 | ||
name: build documentation | ||
runs-on: ubuntu-16.04 | ||
|
||
if: "startsWith(github.ref, 'refs/heads/release/')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- run: | | ||
pip install virtualenv | ||
make apidocs | ||
cd docs/_build && zip -r gh-pages ./ | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ github.sha }} | ||
path: docs/_build/gh-pages.zip | ||
|
||
lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-16.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- run: | | ||
pip install tox | ||
tox -e linters | ||
test: | ||
continue-on-error: true | ||
timeout-minutes: 35 | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
python-version: | ||
["2.7", "pypy-2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9"] | ||
|
||
services: | ||
# Label used to access the service container | ||
redis: | ||
# Docker Hub image | ||
image: redis | ||
# Set health checks to wait until redis has started | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
# Maps port 6379 on service container to the host | ||
- 6379:6379 | ||
|
||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: sentry | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
# Maps tcp port 5432 on service container to the host | ||
ports: | ||
- 5432:5432 | ||
|
||
env: | ||
SENTRY_PYTHON_TEST_POSTGRES_USER: postgres | ||
SENTRY_PYTHON_TEST_POSTGRES_PASSWORD: sentry | ||
SENTRY_PYTHON_TEST_POSTGRES_NAME: ci_test | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: setup | ||
env: | ||
PGHOST: localhost | ||
PGPASSWORD: sentry | ||
run: | | ||
psql -c 'create database travis_ci_test;' -U postgres | ||
psql -c 'create database test_travis_ci_test;' -U postgres | ||
pip install codecov tox | ||
- name: run tests | ||
env: | ||
CI_PYTHON_VERSION: ${{ matrix.python-version }} | ||
run: | | ||
coverage erase | ||
./scripts/runtox.sh '' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch | ||
coverage combine .coverage* | ||
coverage xml -i | ||
codecov --file coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: Version to release | ||
required: true | ||
force: | ||
description: Force a release even when there are release-blockers (optional) | ||
required: false | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: "Release a new version" | ||
steps: | ||
- name: Prepare release | ||
uses: getsentry/action-prepare-release@33507ed | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
force: ${{ github.event.inputs.force }} | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_RELEASE_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Craft Prepare | ||
run: npx @sentry/craft prepare --no-input "${{ env.RELEASE_VERSION }}" | ||
env: | ||
GITHUB_API_TOKEN: ${{ github.token }} | ||
|
||
- name: Request publish | ||
if: success() | ||
uses: actions/github-script@v3 | ||
with: | ||
github-token: ${{ secrets.GH_RELEASE_PAT }} | ||
script: | | ||
const repoInfo = context.repo; | ||
await github.issues.create({ | ||
owner: repoInfo.owner, | ||
repo: 'publish', | ||
title: `publish: ${repoInfo.repo}@${process.env.RELEASE_VERSION}`, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters