Skip to content

Commit 7b42867

Browse files
authored
Create feature-ci-cd
1 parent af9eb85 commit 7b42867

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/feature-ci-cd

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)