Skip to content

Commit 3dcc844

Browse files
authored
Merge pull request #18 from emirkmo/master
Update tests to include up to 3.10
2 parents fae3ded + e772417 commit 3dcc844

File tree

4 files changed

+56
-3
lines changed

4 files changed

+56
-3
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: ["3.7", "3.8", "3.9", "3.10"]
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install flake8 pytest
31+
pip install tox tox-gh-actions
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
- name: Lint with flake8
34+
run: |
35+
# stop the build if there are Python syntax errors or undefined names
36+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
- name: Run tox with tox-gh-actions
40+
run: tox

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MetaFunctions
22
[![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-
3+
![GithubActions Badge](https://github.com/emirkmo/metafunctions/actions/workflows/python-package.yml/badge.svg)
44

55

66

@@ -56,7 +56,7 @@ Well you may not *need* a new syntax, but the ability to compose a data pipeline
5656

5757
## Installation
5858

59-
MetaFunctions supports python 3.5+
59+
MetaFunctions supports python 3.5+ (tested to 3.10+)
6060

6161
`pip install metafunctions`
6262

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ def run(self):
6969
'Programming Language :: Python :: 3.5',
7070
'Programming Language :: Python :: 3.6',
7171
'Programming Language :: Python :: 3.7',
72+
'Programming Language :: Python :: 3.8',
73+
'Programming Language :: Python :: 3.9',
74+
'Programming Language :: Python :: 3.10',
7275
],
7376
keywords='functional-programming function-composition',
7477
packages=find_packages(),

tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py35, py36
7+
envlist = py35, py36, py37, py38, py39, py310
8+
9+
[gh-actions]
10+
python =
11+
3.6: py36
12+
3.7: py37
13+
3.8: py38
14+
3.9: py39
15+
3.10: py310
16+
817

918
[testenv]
1019
deps =
1120
coverage
1221
ansicolors
22+
colors.py
1323
commands =
1424
coverage run -pm unittest discover
1525
coverage combine

0 commit comments

Comments
 (0)