Skip to content

Commit 53011d9

Browse files
committed
Run tests in GitHub Actions
1 parent ba69c84 commit 53011d9

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
unittest:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v5
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
23+
- name: Check syntax
24+
run: python -m py_compile datadog.py examples/basic_metrics.py tests/test_datadog.py
25+
26+
- name: Run tests
27+
run: python -B -m unittest discover -s tests

0 commit comments

Comments
 (0)