-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the test suite to GitHub Actions
- Loading branch information
1 parent
9112a67
commit ce5e21d
Showing
5 changed files
with
105 additions
and
163 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,68 @@ | ||
name: Build and Test | ||
|
||
on: [push, pull_request] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
|
||
jobs: | ||
|
||
build: | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-18.04] | ||
python-version: [3.8] | ||
minimal: [false] | ||
answer-tests: [false] | ||
include: | ||
- os: ubuntu-18.04 | ||
python-version: 3.6 | ||
minimal: true | ||
answer-tests: false | ||
- os: ubuntu-18.04 | ||
python-version: 3.7 | ||
minimal: false | ||
answer-tests: true | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- uses: s-weigand/setup-conda@v1 | ||
if: matrix.os == 'windows-latest' | ||
with: | ||
update-conda: true | ||
conda-channels: conda-forge | ||
activate-conda: true | ||
python-version: ${{matrix.python-version}} | ||
- name: Show env | ||
shell: bash | ||
run: | | ||
echo PATH $PATH | ||
echo python `which python` | ||
python -c "import sys; print(sys.version)" | ||
- name: Install dependencies and yt | ||
shell: bash | ||
run: | | ||
if [ "${{ matrix.minimal }}" == "true" ]; then | ||
export MINIMAL=1 | ||
fi | ||
source ./tests/ci_install.sh | ||
- name: Run Tests | ||
run: | | ||
if [ "${{ matrix.answer-tests }}" == "true" ]; then | ||
export CONFIG=nose_answer.cfg | ||
else | ||
export CONFIG=nose_unit.cfg | ||
fi | ||
python -m nose -c $CONFIG --traverse-namespace |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.