Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tests to run on GitHub Actions #67

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
28 changes: 28 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit Testing
on: [push]
jobs:
unit-testing:
strategy:
matrix:
os: [window-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
name: 'Unit tests'
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: |
3.8
3.9
3.10
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install -r requirements_extra.txt
- name: Run unit tests
run: |
pytest tests
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[pytest]
markers =
slow: Mark test as slow.
pythonpath = "."
testpaths = "tests"
2 changes: 1 addition & 1 deletion requirements_extra.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
allennlp
networkx==2.4
networkx==3.0
Empty file added tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
allennlp
networkx==2.4
networkx==3.0
pytest