-
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.
* Remove un-used import * Add boilerplate GitHub Actions CI script taken from openforcefield/status#13 * Add channels to conda env YAML * Fix some references to `openff_cli`
- Loading branch information
1 parent
9e9f31b
commit 3160e4a
Showing
8 changed files
with
77 additions
and
21 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
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,66 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "maintenance/.+" | ||
pull_request: | ||
branches: | ||
- "master" | ||
- "maintenance/.+" | ||
schedule: | ||
# Run a cron job once daily | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macOS-latest, ubuntu-latest] | ||
python-version: [3.6, 3.7] | ||
env: | ||
PYVER: ${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
activate-environment: test | ||
channel-priority: true | ||
environment-file: devtools/conda-envs/test_env.yaml | ||
auto-activate-base: false | ||
|
||
- name: Additional info about the build | ||
shell: bash | ||
run: | | ||
uname -a | ||
df -h | ||
ulimit -a | ||
- name: Environment Information | ||
shell: bash -l {0} | ||
run: | | ||
conda info --all | ||
conda list | ||
- name: Install package | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --no-deps . | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
PYTEST_ARGS=" -v --cov=openff/cli/ --cov-report=xml --cov-config=setup.cfg" | ||
pytest $PYTEST_ARGS openff/cli/tests | ||
- name: Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./coverage.xml | ||
fail_ci_if_error: true |
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
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