Skip to content

Commit 83af8c6

Browse files
committed
workflow for testing
1 parent 897f683 commit 83af8c6

File tree

3 files changed

+8
-166
lines changed

3 files changed

+8
-166
lines changed

.github/workflows/main.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ jobs:
4646
mamba install --file requirements/test.txt
4747
pip install -e .
4848
49-
- name: Use Xvfb Action
50-
uses: GabrielBB/xvfb-action@v1
51-
with:
52-
run: |
53-
bash -c "source $HOME/mambaforge/etc/profile.d/conda.sh && conda activate test_env && python -m run_tests.py"
49+
- name: Validate diffpy.pdfgui
50+
shell: bash -l {0}
51+
run: |
52+
conda activate test
53+
coverage run -m unittest run_tests.py
54+
coverage report -m
55+
codecov

run_tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
import diffpy.pdfgui.tests
44

5+
assert diffpy.pdfgui.tests.test().wasSuccessful()
56
assert diffpy.pdfgui.tests.testdeps().wasSuccessful()

setup.py

-161
This file was deleted.

0 commit comments

Comments
 (0)