Skip to content

Commit c48a730

Browse files
authored
Merge pull request #5 from musevlt/actions
Switch to Github Actions
2 parents eff6309 + 590a8f0 commit c48a730

File tree

4 files changed

+50
-23
lines changed

4 files changed

+50
-23
lines changed

.github/workflows/python-tests.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Run unit tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
workflow_dispatch:
9+
schedule:
10+
# Run every Sunday at 03:53 UTC
11+
- cron: 13 3 * * 0
12+
13+
jobs:
14+
tests:
15+
name: ${{ matrix.os }}, ${{ matrix.tox_env }}
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
include:
20+
- os: ubuntu-latest
21+
python: '3.7'
22+
tox_env: 'py37'
23+
- os: ubuntu-latest
24+
python: '3.8'
25+
tox_env: 'py38'
26+
- os: ubuntu-latest
27+
python: '3.9'
28+
tox_env: 'py39'
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v2
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install Tox
39+
run: python -m pip install tox coverage
40+
- name: Run Tox
41+
run: tox -e ${{ matrix.tox_env }}
42+
- name: Convert coverage
43+
run: python -m coverage xml
44+
- name: Upload coverage to Codecov
45+
uses: codecov/codecov-action@v1
46+
with:
47+
fail_ci_if_error: true

.travis.yml

-20
This file was deleted.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. image:: https://travis-ci.org/musevlt/muse-psfr.svg?branch=master
2-
:target: https://travis-ci.org/musevlt/muse-psfr
1+
.. image:: https://github.com/musevlt/muse-psfr/workflows/Run%20unit%20tests/badge.svg
2+
:target: https://github.com/musevlt/muse-psfr
33

44
.. image:: https://codecov.io/gh/musevlt/muse-psfr/branch/master/graph/badge.svg
55
:target: https://codecov.io/gh/musevlt/muse-psfr

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py36,py37,py38
2+
envlist = py37,py38,py39
33
requires =
44
virtualenv >= 20
55

0 commit comments

Comments
 (0)