Skip to content

Commit

Permalink
Merge pull request #68 from lukapecnik/workflow_action_testing
Browse files Browse the repository at this point in the history
Run tests with github action
  • Loading branch information
lukapecnik committed Feb 26, 2022
2 parents 88e8c1e + dbb8466 commit 02ab594
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/main.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests
run: |
poetry run coverage run --source=niaaml -m unittest discover -b
- name: Publish coverage
run: |
poetry run coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
![PyPI - Downloads](https://img.shields.io/pypi/dm/niaaml.svg)
[![Downloads](https://pepy.tech/badge/niaaml)](https://pepy.tech/project/niaaml)
[![GitHub license](https://img.shields.io/github/license/lukapecnik/niaaml.svg)](https://github.com/lukapecnik/niaaml/blob/master/LICENSE)
[![Build Status](https://travis-ci.com/lukapecnik/NiaAML.svg?branch=master)](https://travis-ci.com/lukapecnik/NiaAML)
![build](https://github.com/lukapecnik/niaaml/actions/workflows/test.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/lukapecnik/NiaAML/badge.svg?branch=master)](https://coveralls.io/github/lukapecnik/NiaAML?branch=master)
[![Documentation Status](https://readthedocs.org/projects/niaaml/badge/?version=latest)](https://niaaml.readthedocs.io/en/latest/?badge=latest)

Expand All @@ -25,7 +25,7 @@ The NiaAML framework allows you not only to run full pipeline optimization, but

* **Free software:** MIT license,
* **Documentation:** https://niaaml.readthedocs.io/en/latest/,
* **Python versions:** 3.6.x, 3.7.x, 3.8.x,
* **Python versions:** 3.6.x, 3.7.x, 3.8.x, 3.9.x,
* **Dependencies:** [click](CONTRIBUTING.md#development-dependencies),
* **Tested OS:** Windows, Ubuntu, Fedora, Linux Mint and CentOS. **However, that does not mean it does not work on others.**

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NiaAML
======

.. image:: https://travis-ci.com/lukapecnik/NiaAML.svg?branch=master
:target: https://travis-ci.com/lukapecnik/NiaAML
.. image:: https://github.com/lukapecnik/niaaml/actions/workflows/test.yml/badge.svg
:target: https://github.com/lukapecnik/niaaml

.. image:: https://coveralls.io/repos/github/lukapecnik/NiaAML/badge.svg?branch=travisCI_integration
:target: https://coveralls.io/github/lukapecnik/NiaAML?branch=travisCI_integration
Expand Down

0 comments on commit 02ab594

Please sign in to comment.