Skip to content

Commit

Permalink
moving CI to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Feb 21, 2023
1 parent ce31211 commit 0a23dc1
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 42 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
[run]
omit = */tests/*,*/conftest.py
relative_files = True

[report]
show_missing = true
precision = 2
1 change: 0 additions & 1 deletion .coveralls.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: migrant

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
config:
- ["3.7", "py37"]
- ["3.8", "py38"]
- ["3.9", "py39"]
- ["3.10", "py310"]
- ["3.11", "py311"]
- ["3.10", "mypy"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
14 changes: 0 additions & 14 deletions .gitlab-ci.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

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

.. image:: https://travis-ci.org/Shoobx/migrant.png?branch=master
:target: https://travis-ci.org/Shoobx/migrant
.. image:: https://github.com/Shoobx/migrant/actions/workflows/test.yml/badge.svg
:target: https://github.com/Shoobx/migrant/actions

.. image:: https://coveralls.io/repos/github/Shoobx/migrant/badge.svg?branch=master
:target: https://coveralls.io/github/Shoobx/migrant?branch=master
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def read_file(filename):
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Natural Language :: English",
"Operating System :: OS Independent",
Expand Down
16 changes: 11 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
[tox]
envlist = py36, py37, py38
envlist = py37, py38, py39, py310, py311

[testenv]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands =
py.test \
-rw --cov=src --cov-report=term-missing --cov-report=html \
-s --tb=native
-rw --cov=src --cov-report=term-missing --cov-report=term-missing -s --tb=native
deps =
pytest
.[test]
pytest
pytest-cov

[testenv:py310-mypy]
description = Run mypy
deps =
mypy
{[testenv]deps}
commands =
mypy --non-interactive {toxinidir}/src

0 comments on commit 0a23dc1

Please sign in to comment.