forked from CORE-GATECH-GROUP/serpent-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
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 CORE-GATECH-GROUP#439 from drewejohnson/backport-g…
…ha-master CI Backport github actions to master
- Loading branch information
Showing
6 changed files
with
61 additions
and
44 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,58 @@ | ||
name: CI | ||
on: | ||
# Enable running actions from GH Actions tab | ||
workflow_dispatch: | ||
|
||
pull_request: | ||
branches: | ||
- develop | ||
- master | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
installer: [setup,sdist] | ||
|
||
name: 'Python ${{ matrix.python-version }} installer=${{ matrix.installer }}' | ||
|
||
# Environment variables | ||
env: | ||
ST_INSTALL: ${{ matrix.installer }} | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
|
||
- | ||
name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- | ||
name: install | ||
shell: bash | ||
run: | | ||
pip install -r requirements.txt | ||
pip install -r requirements-test.txt | ||
$GITHUB_WORKSPACE/scripts/ci/install.sh | ||
- | ||
name: test | ||
shell: bash | ||
run: | | ||
pytest --cov=serpentTools --cov-report= -v | ||
$GITHUB_WORKSPACE/scripts/ci/testNotebooks.sh | ||
- | ||
name: after | ||
shell: bash | ||
run: | | ||
coverage report |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ipython>=5.8.0,<=7.0.0 | ||
flake8==3.5.0 | ||
pandas==0.24.0 | ||
pandas>=1,<=1.3 | ||
jupyter==1.0.0 | ||
coverage==4.5.1 | ||
scipy==1.3.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
numpy>=1.16.0 | ||
matplotlib>=2.2.3 | ||
matplotlib>=2.2.3,<=3.3.4 | ||
pyyaml>=5.1.1 |
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
File renamed without changes.