Skip to content

Commit b108091

Browse files
committed
Use github actions instead of travis
1 parent 7733cfc commit b108091

File tree

4 files changed

+32
-45
lines changed

4 files changed

+32
-45
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test python package
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: ["3.12", "3.13"]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: pip install tox
25+
- name: Run tests
26+
run: tox

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</p>
44
<p align=center>
55
<a href="https://pypi.org/project/pystiebeleltron/"><img src="https://img.shields.io/pypi/v/pystiebeleltron.svg"/></a>
6-
<a href="https://travis-ci.org/fucm/python-stiebel-eltron"><img src="https://img.shields.io/travis/fucm/python-stiebel-eltron.svg"/></a>
6+
<a href="https://github.com/fucm/python-stiebel-eltron"><img src="https://github.com/fucm/python-stiebel-eltron/actions/workflows/test-python-package/badge.svg"/></a>
77
<a href='https://coveralls.io/github/fucm/python-stiebel-eltron?branch=master'><img src='https://coveralls.io/repos/github/fucm/python-stiebel-eltron/badge.svg?branch=master' alt='Coverage Status' /></a>
88
<img src="https://img.shields.io/github/license/fucm/python-stiebel-eltron.svg"/></a>
99
</p>
@@ -42,9 +42,9 @@ The sample below shows how to use this Python module.
4242

4343
unit = pyse.StiebelEltronAPI(client, 1)
4444
unit.update()
45-
45+
4646
print("get_target_temp: {}".format(unit.get_target_temp))
47-
47+
4848
client.close()
4949
```
5050

tox.ini

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# directory.
55

66
[tox]
7-
envlist = py38,py39,py310,py311,py312,py313,flake8,pylint,refactory
7+
envlist = py38,py39,py310,py312,py313,flake8,pylint,refactory
88
skip_missing_interpreters = true
99

1010
[testenv]
@@ -17,7 +17,7 @@ setenv =
1717
commands =
1818
pytest
1919

20-
[testenv:py38]
20+
[testenv:py312]
2121
deps =
2222
pytest
2323
pytest-cov
@@ -47,25 +47,16 @@ exclude = .tox
4747
deps =
4848
pylint
4949
commands =
50-
pylint -d all -e CR pystiebeleltron
50+
pylint pystiebeleltron
5151

5252
[testenv:coverage]
53-
#deps = coverage
54-
#commands = coverage report --rcfile=tox.ini --fail-under=65
55-
passenv = TRAVIS TRAVIS_*
5653
deps =
5754
coverage
5855
coveralls
5956
commands =
6057
coverage report --rcfile=tox.ini --fail-under=65
6158
coveralls --rcfile=tox.ini
6259

63-
# for travis-ci configuration
64-
[travis]
65-
python =
66-
3.8: py38, flake8, pylint, coverage
67-
3.9: py39
68-
6960
# .coveragerc to control coverage.py
7061
[report]
7162
show_missing = True

0 commit comments

Comments
 (0)