forked from getsentry/sentry-auth-google
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from siemens/refactor/sentry-21-02-0-changes
Refactor/sentry 21 02 0 changes
- Loading branch information
Showing
17 changed files
with
471 additions
and
144 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
PY_COLORS: 1 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
- uses: abatilo/actions-poetry@v2.0.0 | ||
- name: Publish package | ||
run: | | ||
poetry install -n --no-dev | ||
poetry publish --build -u __token__ -p ${{ secrets.PYPI_SECRET }} |
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,69 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
PY_COLORS: 1 | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
- uses: psf/black@stable | ||
with: | ||
args: "--check ." | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v3 | ||
test: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres:9.6 | ||
env: | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
# Set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
memcached: | ||
image: memcached:1.5-alpine | ||
ports: | ||
- 11211:11211 | ||
redis: | ||
image: redis:5.0-alpine | ||
ports: | ||
- 6379:6379 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.6" | ||
- uses: abatilo/actions-poetry@v2.0.0 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '12' | ||
- run: | | ||
sudo apt-get update && sudo apt-get install -y libxmlsec1-dev libmaxminddb-dev | ||
pip3 install -U wheel | ||
make develop | ||
make test |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/build | ||
venv | ||
.venv | ||
.coverage |
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 @@ | ||
3.6.12 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,17 @@ | ||
.PHONY: clean develop install-tests lint publish test | ||
.PHONY: clean develop test | ||
|
||
develop: | ||
pip2 install "pip>=7" | ||
pip2 install -e git+https://github.com/getsentry/sentry.git#egg=sentry[dev] | ||
pip2 install -e . | ||
make install-tests | ||
|
||
install-tests: | ||
pip install .[tests] | ||
|
||
lint: | ||
@echo "--> Linting python" | ||
flake8 | ||
@echo "" | ||
pip3 install -e git+https://github.com/getsentry/sentry.git#egg=sentry[dev] | ||
poetry install -n --no-dev | ||
poetry build | ||
pip3 install -U dist/*.whl | ||
pip3 install codecov | ||
|
||
test: | ||
@echo "--> Running Python tests" | ||
py.test tests || exit 1 | ||
pytest tests || exit 1 | ||
@echo "" | ||
|
||
publish: | ||
python setup.py sdist bdist_wheel upload | ||
|
||
clean: | ||
rm -rf *.egg-info src/*.egg-info | ||
rm -rf dist build |
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
from __future__ import absolute_import | ||
|
||
import sys | ||
import os | ||
import sys | ||
|
||
os.environ.setdefault("DB", "postgres") | ||
|
||
|
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 |
---|---|---|
@@ -1 +0,0 @@ | ||
from __future__ import absolute_import | ||
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
Oops, something went wrong.