Skip to content

Commit 579cf81

Browse files
authored
Merge pull request #49 from anish-mudaraddi/cloud-energy-collection
Cloud energy collection
2 parents 86940f8 + 6e0bd30 commit 579cf81

File tree

13 files changed

+1367
-0
lines changed

13 files changed

+1367
-0
lines changed

.github/workflows/black.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ jobs:
2121
uses: psf/black@stable
2222
with:
2323
src: "prometheus_ip_script"
24+
25+
- name: IRISCAST Energy Monitoring
26+
uses: psf/black@stable
27+
with:
28+
src: "iriscasttools/iriscasttools"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Cloud Energy Collection Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- "iriscasttools/**"
10+
- ".github/workflows/iriscast_package_build.yaml"
11+
12+
jobs:
13+
test_and_lint:
14+
runs-on: ubuntu-20.04
15+
strategy:
16+
matrix:
17+
python-version: ["3.x", "3.10", "3.6"]
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: "pip"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install -r iriscasttools/requirements.txt
30+
31+
- name: Run tests
32+
run: cd iriscasttools/ && python3 -m pytest .
33+
34+
- name: Analyse with pylint
35+
run: |
36+
cd iriscasttools && pylint --recursive yes test iriscasttools

0 commit comments

Comments
 (0)