Skip to content

Commit 3b2b328

Browse files
authored
Add GH action for testing (#509)
1 parent 2223ae5 commit 3b2b328

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/validate.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Validate
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
- dajusto/add-gh-actions-tests
9+
pull_request:
10+
branches:
11+
- main
12+
- dev
13+
- dajusto/add-gh-actions-tests
14+
15+
jobs:
16+
validate:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.9
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r requirements.txt
30+
- name: Run Linter
31+
run: |
32+
cd azure
33+
flake8 . --count --show-source --statistics
34+
- name: Run tests
35+
run: |
36+
pytest

0 commit comments

Comments
 (0)