Skip to content

Commit 9c322d7

Browse files
author
Anuraag Agrawal
authored
Merge pull request #276 from anuraaga/istributioncheck
Add distribution channel smoke test
2 parents 266bc82 + 2e8cd7f commit 9c322d7

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Continuous monitoring of distribution channels
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 */6 * * *'
6+
7+
jobs:
8+
smoke-tests:
9+
name: Run smoke tests
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
- run: pip install tox
18+
- name: Run smoke tests
19+
run: tox -c tox-distributioncheck.ini

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ pip-selfcheck.json
2020

2121
.coverage*
2222
htmlcov
23+
24+
venv

tests/distributioncheck/__init__.py

Whitespace-only changes.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from aws_xray_sdk.core.models.segment import Segment
2+
3+
def test_create_segment():
4+
segment = Segment('test')
5+
assert segment.name == 'test'

tox-distributioncheck.ini

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[tox]
2+
skipsdist = true
3+
4+
[testenv:distribution-check]
5+
deps =
6+
pytest > 5.2.0
7+
aws-xray-sdk
8+
commands =
9+
pytest tests/distributioncheck

0 commit comments

Comments
 (0)