Skip to content

Commit 788e2b5

Browse files
authored
Merge pull request #8 from AATools/github_actions
use GitHub Actions
2 parents 20b361a + cced258 commit 788e2b5

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: GitHub CI
2+
on: ["push", "pull_request"]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
python-version: [3.6, 3.7]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Python ${{ matrix.python-version }}
12+
uses: actions/setup-python@v2
13+
with:
14+
python-version: ${{ matrix.python-version }}
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install -r requirements.txt
19+
- name: Run tests
20+
run: pytest --cov=.
21+
- name: Upload coverage data
22+
run: coveralls
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}
26+
COVERALLS_PARALLEL: true
27+
COVERALLS_SERVICE_NAME: github
28+
coveralls:
29+
name: Indicate completion
30+
needs: test
31+
runs-on: ubuntu-latest
32+
container: python:3-slim
33+
steps:
34+
- name: Finished
35+
run: |
36+
pip3 install --upgrade coveralls
37+
coveralls --finish
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
COVERALLS_SERVICE_NAME: github

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019-2020 AATools
3+
Copyright (c) 2019-2021 AATools
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# IBM IB metrics exporter
22

3-
[![Build Status](https://travis-ci.com/AATools/ib-metrics-pyclient.svg?branch=master)](https://travis-ci.com/AATools/ib-metrics-pyclient) [![Coverage Status](https://coveralls.io/repos/github/AATools/ib-metrics-pyclient/badge.svg?branch=master)](https://coveralls.io/github/AATools/ib-metrics-pyclient?branch=master)
3+
[![Actions Status](https://github.com/AATools/ib-metrics-pyclient/workflows/GitHub%20CI/badge.svg)](https://github.com/AATools/ib-metrics-pyclient/actions) [![Coverage Status](https://coveralls.io/repos/github/AATools/ib-metrics-pyclient/badge.svg?branch=master)](https://coveralls.io/github/AATools/ib-metrics-pyclient?branch=master)
44

55
This is python client for collecting IBM Integration Bus metrics and exporting to [Prometheus pushgateway](https://github.com/prometheus/pushgateway).
66
The collected metrics can be explored in Prometheus or Grafana.
77

88
The metrics are collected using [mqsilist](https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/an07250_.htm) command. So, you need to install `IBM Integration Bus`.
99

10-
Tested for IBM IB v9 and v10 and Python 2.7, 3.6 on Linux.
10+
Tested for IBM IB v9 and v10 and Python 3.6, 3.7 on Linux.
1111

1212
## Collected metrics
1313

0 commit comments

Comments
 (0)