-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-doc-build
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 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,54 @@ | ||
name: System Tests | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '00 04 * * 2-6' | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
system-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- weblog-variant: flask-poc | ||
- weblog-variant: uwsgi-poc | ||
- weblog-variant: django-poc | ||
fail-fast: false | ||
env: | ||
TEST_LIBRARY: python | ||
WEBLOG_VARIANT: ${{ matrix.weblog-variant }} | ||
DD_API_KEY: ${{ secrets.DD_API_KEY }} | ||
steps: | ||
- name: Checkout system tests | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: 'DataDog/system-tests' | ||
|
||
- name: Checkout dd-trace-py | ||
uses: actions/checkout@v2 | ||
with: | ||
path: 'binaries/dd-trace-py' | ||
|
||
- name: Build | ||
run: ./build.sh | ||
|
||
- name: Run | ||
run: ./run.sh | ||
|
||
# even on failures, we want to have artifact to be able to investigate | ||
# The compress step speed up a lot the uplaod artifact process | ||
- name: Compress artifact | ||
if: ${{ always() }} | ||
run: tar -czvf artifact.tar.gz $(ls | grep logs) | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: logs_${{ matrix.weblog-variant }} | ||
path: artifact.tar.gz |