File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name: feature-cicd-tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - feature/*
7
+ pull_request:
8
+ branches:
9
+ - feature/*
10
+
11
+ jobs:
12
+ lint:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Check out repo
16
+ uses: actions/checkout@v3
17
+ - name: Run pre-commit
18
+ uses: pre-commit/action@v3.0.1
19
+
20
+ build:
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ python-version: ["3.10"]
25
+ steps:
26
+ - uses: actions/setup-python@v4
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ - uses: actions/checkout@v3
30
+ - name: Test with tox
31
+ run: |
32
+ pip install tox
33
+ tox -- --cov datafog --cov-report xml --cov-report term
34
+ - name: Submit to codecov
35
+ uses: codecov/codecov-action@v3
36
+ if: ${{ matrix.python-version == '3.10' }}
37
+
38
+ - name: Upload coverage reports to Codecov
39
+ uses: codecov/codecov-action@v4.0.1
40
+ env:
41
+ token: ${{ secrets.CODECOV_TOKEN }}
42
+ slug: DataFog/datafog-python
43
+
44
+ - name: Run script
45
+ env:
46
+ APPLICATIONINSIGHTS_CONNECTION_STRING: ${{ secrets.APPLICATIONINSIGHTS_CONNECTION_STRING }}
47
+ run: |
48
+ python datafog/telemetry/open_telemetry.py
You can’t perform that action at this time.
0 commit comments