-
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.
Periodically test against IMP stable release
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 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,32 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "57 12 * * 3" # Run at a random time weekly | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.10"] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Setup conda and dependencies | ||
run: | | ||
util/setup_ci.sh ${{ matrix.python-version }} | ||
- name: Test | ||
run: | | ||
eval "$(conda shell.bash hook)" | ||
conda activate python${{ matrix.python-version }} | ||
cd test | ||
# Run a quick subset of all tests | ||
python test.py Tests.test_mmcif |
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,20 @@ | ||
#!/bin/bash -e | ||
|
||
# Set up an environment to run tests under Travis CI (see toplevel .travis.yml) | ||
# or GitHub Actions (see toplevel .github/workflows/build.yml) | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 python_version" | ||
exit 1 | ||
fi | ||
|
||
python_version=$1 | ||
|
||
# get conda-forge, not main, packages | ||
conda config --remove channels defaults | ||
conda config --add channels conda-forge | ||
IMP_CONDA="imp" | ||
|
||
conda create --yes -q -n python${python_version} -c salilab python=${python_version} matplotlib ${IMP_CONDA} | ||
eval "$(conda shell.bash hook)" | ||
conda activate python${python_version} |