File tree Expand file tree Collapse file tree 5 files changed +35
-0
lines changed
Expand file tree Collapse file tree 5 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -20,3 +20,5 @@ pip-selfcheck.json
2020
2121.coverage *
2222htmlcov
23+
24+ venv
Original file line number Diff line number Diff line change 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'
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments