Skip to content

Commit 73e5e87

Browse files
committed
ci: add GitHub Actions workflow and migrate from Travis CI
- Add .github/workflows/ci.yml for automated testing on push and pull requests - Test across Python versions 3.5, 3.6, 3.8, 3.9, and 3.12 - Include unit tests with pytest and style checks with pycodestyle - Update README badge to reflect new GitHub Actions status - Rename share/travis_setup.sh to share/github_setup.sh for consistency
1 parent 49e94c8 commit 73e5e87

5 files changed

Lines changed: 41 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8", "3.9", "3.12"]
11+
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
20+
- name: Create gobyte config
21+
run: |
22+
mkdir ~/.gobytecore
23+
cp share/gobyte.conf.example ~/.gobytecore/gobyte.conf
24+
25+
- name: Install dependencies
26+
run: |
27+
pip install -r requirements.txt
28+
29+
- name: Run unit tests
30+
run: |
31+
py.test -svv test/unit/
32+
33+
- name: Run style check
34+
run: |
35+
pip install pycodestyle
36+
find ./lib ./test ./bin -name "*.py" -exec pycodestyle --show-source --ignore=E501,E402,E722,E129,W503,W504 {} +

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GoByte Sentinel
22

3-
[![Build Status](https://travis-ci.org/gobytecoin/sentinel.svg?branch=master)](https://travis-ci.org/gobytecoin/sentinel)
3+
[![Build Status](https://github.com/gobytecoin/sentinel/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/gobytecoin/sentinel/actions/workflows/ci.yml)
44

55
> An automated governance helper for GoByte Masternodes.
66

requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
peewee==2.8.3
2-
py==1.10.0
3-
pycodestyle==2.4.0
4-
pytest==3.0.1
1+
peewee==3.17.0
2+
pycodestyle==2.11.1
3+
pytest==8.3.4
54
python-bitcoinrpc==1.0
6-
simplejson==3.8.2
5+
simplejson==3.18.0

0 commit comments

Comments
 (0)