Skip to content

Commit 362a02e

Browse files
author
Eli Sennesh
committed
Merge branch 'main' into develop
Signed-off-by: Eli Sennesh <sennesh.e@northeastern.edu>
2 parents 8375ee7 + 065e1eb commit 362a02e

File tree

301 files changed

+20638
-10258
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+20638
-10258
lines changed

.codecov.yml

-2
This file was deleted.

.github/workflows/build_test.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
SRC_DIR: discopy
7+
TEST_DIR: test
8+
DOCS_DIR: docs
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [ 3.9 ]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install linter
23+
run:
24+
python -m pip install pycodestyle coverage
25+
- name: Check for errors
26+
run:
27+
# stop the build if there are Python syntax errors or undefined names
28+
pycodestyle discopy
29+
build_and_test:
30+
needs: lint
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
python-version: [ 3.9 ]
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Setup Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v2
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Install base package
42+
run: pip install .
43+
- name: Install coverage and pytest
44+
run:
45+
python -m pip install coverage pytest
46+
- name: Install test dependencies
47+
run:
48+
python -m pip install -r ${{ env.TEST_DIR }}/requirements.txt
49+
- name: Test with pytest
50+
run:
51+
coverage run --source=${{ env.SRC_DIR }} -m pytest ${{ env.SRC_DIR }} ${{ env.TEST_DIR }} --doctest-modules
52+
- name: Coverage report
53+
run:
54+
coverage report --fail-under=99 --show-missing
55+
- name: Linting
56+
run:
57+
pylint discopy
58+
- name: Install nbmake and test notebooks
59+
run: |
60+
python -m pip install nbmake
61+
pytest --nbmake ${{ env.DOCS_DIR }}/notebooks/*.ipynb

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*.pyc
1414
*.nav
1515
docs/_build/*
16-
docs/_autosummary/*
16+
docs/_api/*
1717
*/__pycache__/*
1818
*.egg-info
1919
build/*

0 commit comments

Comments
 (0)