Skip to content

Commit f2eda18

Browse files
authored
Merge pull request #22 from ForeverWintr/new-ci
New ci
2 parents 5cc631b + 2f06147 commit f2eda18

File tree

5 files changed

+21
-81
lines changed

5 files changed

+21
-81
lines changed
Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python package
4+
name: Test
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ master, dev ]
99
pull_request:
10-
branches: [ master ]
10+
1111

1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ${{ matrix.os }}
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.7", "3.8", "3.9", "3.10"]
19+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11.0-alpha - 3.11.0"]
20+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
2021

2122
steps:
2223
- uses: actions/checkout@v2
@@ -27,14 +28,21 @@ jobs:
2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip
30-
python -m pip install flake8 pytest
31+
python -m pip install flake8
3132
pip install tox tox-gh-actions
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
pip install -r requirements-dev.txt
3334
- name: Lint with flake8
3435
run: |
3536
# stop the build if there are Python syntax errors or undefined names
3637
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3738
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3839
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3940
- name: Run tox with tox-gh-actions
40-
run: tox
41+
run: tox -e py
42+
43+
- name: Upload coverage
44+
uses: codecov/codecov-action@v2
45+
with:
46+
files: ./coverage.xml # optional
47+
fail_ci_if_error: true # optional (default = false)
48+
verbose: true # optional (default = false)

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MetaFunctions
2-
[![Build Status](https://travis-ci.org/ForeverWintr/metafunctions.svg?branch=master)](https://travis-ci.org/ForeverWintr/metafunctions) [![Build status](https://ci.appveyor.com/api/projects/status/8120lqx7e9ys2m0u/branch/master?svg=true)](https://ci.appveyor.com/project/ForeverWintr/metafunctions/branch/master) [![Codecov](https://codecov.io/gh/ForeverWintr/metafunctions/coverage.svg?branch=master)](https://codecov.io/gh/ForeverWintr/metafunctions)
3-
![GithubActions Badge](https://github.com/ForeverWintr/metafunctions/actions/workflows/python-package.yml/badge.svg)
2+
![GithubActions Badge](https://github.com/ForeverWintr/metafunctions/actions/workflows/test.yml/badge.svg)
3+
[![Codecov](https://codecov.io/gh/ForeverWintr/metafunctions/coverage.svg?branch=master)](https://codecov.io/gh/ForeverWintr/metafunctions)
44

55

66

appveyor.yml

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

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
# test suite on all supported python versions. To use it, "pip install tox"
44
# and then run "tox" from this directory.
55

6+
# Note: These versions are used when you run tox locally, but gh actions has its own env list.
67
[tox]
78
envlist = py35, py36, py37, py38, py39, py310
89

910
[gh-actions]
10-
python =
11+
python =
1112
3.6: py36
1213
3.7: py37
1314
3.8: py38
@@ -19,8 +20,7 @@ python =
1920
deps =
2021
coverage
2122
ansicolors
22-
colors.py
2323
commands =
2424
coverage run -pm unittest discover
2525
coverage combine
26-
26+
coverage xml

0 commit comments

Comments
 (0)