forked from Axelrod-Python/Axelrod
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 1.69 KB
/
config.yml
File metadata and controls
65 lines (61 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
pull_request:
# Run weakly at 00:00 on Sunday.
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Check that documentation builds
run: |
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install docutils==0.12
python -m pip install mock
cd docs; make clean; make html; cd ..;
- name: Install testing dependencies
run: |
python -m pip install coverage
python -m pip install hypothesis==3.2
python -m pip install mypy
python -m pip install black
- name: Run tests
run: |
coverage run --source=axelrod -m unittest discover
- name: Report coverage
run: |
coverage report -m --fail-under=100
- name: Run doctest
run: |
python doctests.py
- name: Run static type checker
run: |
python run_mypy.py
- name: Check that all strategies are indexed
run: |
python run_strategy_indexer.py
- name: Check format
run: |
python -m black -l 80 . --check
- name: Check that installs
run: |
python setup.py install
cd ..
python -c "import axelrod"