-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from jpgill86/github-actions
Add minimal GitHub Actions workflow for testing installation, importing the package, and building the docs
- Loading branch information
Showing
6 changed files
with
79 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: tests | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install package from repository with docs dependencies | ||
run: | | ||
pip install -e .[docs] | ||
- name: List pip packages | ||
run: | | ||
pip -V | ||
pip list | ||
- name: Build docs | ||
run: | | ||
cd doc | ||
make html | ||
test-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.5', '3.6', '3.7', '3.8', '3.9'] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install package from repository | ||
run: | | ||
pip install -e . | ||
- name: Install other required dependencies | ||
run: | | ||
pip install PyQt5 | ||
- name: List pip packages | ||
run: | | ||
pip -V | ||
pip list | ||
- name: Test imports | ||
run: | | ||
python -c "import ephyviewer" | ||
python -c "import ephyviewer.datasource" | ||
python -c "import ephyviewer.icons" | ||
python -c "import ephyviewer.tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# these restricted versions are defaults on ReadTheDocs, so use the same in | ||
# local builds and in tests | ||
sphinx<2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
matplotlib>=2.0 | ||
numpy | ||
pyqtgraph>=0.10.0 | ||
scipy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters