forked from prometheus-pve/prometheus-pve-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 975 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: CI
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
<<<<<<< HEAD
uses: actions/checkout@v3
- name: Install pylint / pyflakes
run: |
sudo apt-get update
sudo apt-get install --yes pylint pyflakes3
=======
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install test dependencies
run: pip install -r requirements-test.txt
>>>>>>> upstream/main
- name: Install pve_exporter
run: pip install .
- name: Run pylint
run: pylint pve_exporter
- name: Run pyflakes
run: pyflakes src/pve_exporter