Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 4541ae5

Browse files
author
Peter Izsak
authored
Adding Github Actions CI (#141)
Added Github Actions integration for package installation and code style check
1 parent 788d612 commit 4541ae5

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [ubuntu-18.04, macOS-10.15]
13+
python-version: [3.6, 3.7]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/[email protected]
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -U pip setuptools h5py
25+
pip3 install -U -e .[all,dev]
26+
python -m spacy download en
27+
python --version
28+
pip --version
29+
pip list
30+
31+
- name: Code style
32+
run: |
33+
flake8 examples nlp_architect tests solutions --config setup.cfg
34+
./scripts/check_pylint.sh
35+
black --check --line-length 100 --target-version py36 examples nlp_architect solutions tests
36+
37+
# - name: Tests
38+
# run: |
39+
# pytest ./ -rs -v --dist=loadfile --cov=nlp_architect --junit-xml=junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
40+
41+
# - name: Upload pytest test results
42+
# uses: actions/upload-artifact@master
43+
# with:
44+
# name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}
45+
# path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}.xml
46+
# # Use always() to always run this step to publish test results when there are test failures
47+
# if: always()
48+

0 commit comments

Comments
 (0)