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

Fix CI for pytest #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Python package

on: [push]
on:
push:
pull_request:

jobs:
build:
Expand All @@ -20,9 +22,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pytest
- name: Test with pytest
run: pytest test_cliff.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
run: pytest cliffs_delta/test_cliff.py --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
Expand Down
48 changes: 0 additions & 48 deletions build/lib/cliffs_delta/__init__.py

This file was deleted.

50 changes: 0 additions & 50 deletions build/lib/cliffs_delta/test_cliff.py

This file was deleted.

Binary file removed cliffs_delta/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions cliffs_delta/test_cliff.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from __init__ import cliffs_delta
from cliffs_delta import cliffs_delta

class MyTest(unittest.TestCase):

Expand Down Expand Up @@ -47,4 +47,4 @@ def test_nonoverlapping(self): # marco's test
self.assertAlmostEqual(d, -1, 2)

if __name__ == '__main__':
unittest.main()
unittest.main()
Binary file removed dist/cliffs_delta-1.0.0-py3-none-any.whl
Binary file not shown.
Binary file removed dist/cliffs_delta-1.0.0.tar.gz
Binary file not shown.