Skip to content

Commit

Permalink
ci(ci): Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Apr 1, 2022
1 parent 4703bc3 commit 8481d29
Showing 1 changed file with 53 additions and 51 deletions.
104 changes: 53 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: CI

on:
push:
Expand All @@ -9,54 +9,10 @@ on:
pull_request:

jobs:
dist:
name: distribution packages
timeout-minutes: 10
runs-on: ubuntu-latest

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 aws-lambda-layer-build
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: |
dist/*
dist-serverless/*
docs:
timeout-minutes: 10
name: build documentation
runs-on: ubuntu-latest

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
name: Lint Sources
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v2
Expand All @@ -69,9 +25,10 @@ jobs:
tox -e linters
test:
continue-on-error: true
timeout-minutes: 45
name: Run Tests
runs-on: ${{ matrix.linux-version }}
timeout-minutes: 45
continue-on-error: true
strategy:
matrix:
linux-version: [ubuntu-latest]
Expand Down Expand Up @@ -125,7 +82,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: setup
- name: Setup Test Env
env:
PGHOST: localhost
PGPASSWORD: sentry
Expand All @@ -134,7 +91,7 @@ jobs:
psql -c 'create database test_travis_ci_test;' -U postgres
pip install codecov tox
- name: run tests
- name: Run Tests
env:
CI_PYTHON_VERSION: ${{ matrix.python-version }}
timeout-minutes: 45
Expand All @@ -144,3 +101,48 @@ jobs:
coverage combine .coverage*
coverage xml -i
codecov --file coverage.xml
dist:
name: Build AWS Lambda Layer
runs-on: ubuntu-latest
timeout-minutes: 10

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 aws-lambda-layer-build
- uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}
path: |
dist/*
dist-serverless/*
docs:
name: Build SDK API Doc
runs-on: ubuntu-latest
timeout-minutes: 10

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

0 comments on commit 8481d29

Please sign in to comment.