Skip to content

Commit 4e4b110

Browse files
authored
Merge pull request #1309 from Axelrod-Python/move-to-github-actions
Move to GitHub actions
2 parents 30ed681 + 61e09eb commit 4e4b110

File tree

6 files changed

+62
-47
lines changed

6 files changed

+62
-47
lines changed

.github/workflows/config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
max-parallel: 4
11+
matrix:
12+
os: [ubuntu-latest, windows-latest]
13+
python-version: [3.6, 3.7]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install -r requirements.txt
25+
- name: Check that documentation builds
26+
run: |
27+
python -m pip install sphinx
28+
python -m pip install sphinx_rtd_theme
29+
python -m pip install docutils==0.12
30+
python -m pip install mock
31+
cd docs; make clean; make html; cd ..;
32+
- name: Install testing dependencies
33+
run: |
34+
python -m pip install coverage
35+
python -m pip install hypothesis==3.2
36+
python -m pip install mypy
37+
- name: Run tests
38+
run: |
39+
coverage run --source=axelrod -m unittest discover
40+
- name: Report coverage
41+
run: |
42+
coverage report -m --fail-under=100
43+
- name: Run doctest
44+
run: |
45+
python doctests.py
46+
- name: Run static type checker
47+
run: |
48+
python run_mypy.py
49+
- name: Check that all strategies are indexed
50+
run: |
51+
python run_strategy_indexer.py
52+
- name: Check that installs
53+
run: |
54+
python setup.py install
55+
cd ..
56+
python -c "import axelrod"

.travis.yml

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

README.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
.. image:: https://coveralls.io/repos/github/Axelrod-Python/Axelrod/badge.svg?branch=master
2-
:target: https://coveralls.io/github/Axelrod-Python/Axelrod?branch=master
3-
41
.. image:: https://img.shields.io/pypi/v/Axelrod.svg
52
:target: https://pypi.python.org/pypi/Axelrod
63

7-
.. image:: https://travis-ci.org/Axelrod-Python/Axelrod.svg?branch=packaging
8-
:target: https://travis-ci.org/Axelrod-Python/Axelrod
9-
104
.. image:: https://zenodo.org/badge/19509/Axelrod-Python/Axelrod.svg
115
:target: https://zenodo.org/badge/latestdoi/19509/Axelrod-Python/Axelrod
126

7+
.. image:: https://github.com/Axelrod-Python/Axelrod/workflows/CI/badge.svg
8+
:target: https://github.com/Axelrod-Python/Axelrod/actions
9+
1310
|Join the chat at https://gitter.im/Axelrod-Python/Axelrod|
1411

1512
Axelrod
@@ -74,7 +71,7 @@ a peer reviewed paper introducing the library (22 authors).
7471
Installation
7572
------------
7673

77-
The library requires Python 3.5 or greater.
74+
The library requires Python 3.6 or greater.
7875

7976
The simplest way to install is::
8077

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ environment:
55
install:
66
- "%PYTHON%\\python.exe --version"
77
- "%PYTHON%\\python.exe -m pip install -r requirements.txt"
8+
- "%PYTHON%\\python.exe -m pip install hypothesis==3.2"
89
build: off
910
test_script:
1011
- "%PYTHON%\\python.exe -m unittest discover"

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cloudpickle>=0.2.1
22
fsspec>=0.4.3
33
dask>=2.3.0
4-
hypothesis==3.2
54
matplotlib>=2.0.0
65
numpy>=1.9.2
76
pandas>=0.18.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
"Programming Language :: Python :: 3.7",
3434
"Programming Language :: Python :: 3 :: Only",
3535
],
36-
python_requires=">=3.5",
36+
python_requires=">=3.6",
3737
)

0 commit comments

Comments
 (0)