Skip to content

Commit b3ef14a

Browse files
authored
GitHub Actions support (#7)
Support github actions
1 parent 1567dbc commit b3ef14a

File tree

5 files changed

+40
-28
lines changed

5 files changed

+40
-28
lines changed

.github/workflows/python-package.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: zxtools tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
python-version: [3.9, 3.12, 3.13]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install setuptools pytest pytest-cov mock
29+
pip install -e .
30+
- name: Run tests
31+
run: |
32+
pytest --cov=zxtools --cov-report=term-missing
33+
- name: Upload coverage to Codecov
34+
run: bash <(curl -s https://codecov.io/bash)
35+
if: success()

.travis.yml

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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ clean:
1313
distclean: clean
1414

1515
coverage:
16-
coverage run --source zxtools setup.py test
17-
coverage report -m --fail-under=80
16+
pytest --cov=zxtools --cov-report=term-missing
17+
# coverage report -m --fail-under=80
1818

1919
lint:
2020
pylint zxtools -f parseable -r n

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Tools to manipulate ZX Spectrum files
33
=====================================
44

5-
.. image:: https://travis-ci.com/codeatcpp/zxtools.svg?branch=master
6-
:target: https://travis-ci.com/codeatcpp/zxtools
5+
6+
.. image:: https://github.com/jia3ep/zxtools/actions/workflows/python-package.yml/badge.svg
7+
:target: https://github.com/jia3ep/zxtools/actions/workflows
78

89
.. image:: https://codecov.io/gh/codeatcpp/zxtools/branch/master/graph/badge.svg
910
:target: https://codecov.io/gh/codeatcpp/zxtools

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@
3030
url='http://www.codeatcpp.com',
3131
license='BSD-3-Clause',
3232
packages=find_packages(exclude=('test', 'docs')),
33-
tests_require=['mock'],
3433
extras_require={
3534
'test': dev_requires,
3635
},
37-
test_suite='test',
3836
classifiers=[
3937
'Development Status :: 4 - Beta',
4038
'Operating System :: OS Independent',

0 commit comments

Comments
 (0)