-
Notifications
You must be signed in to change notification settings - Fork 9
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 #136 from desihub/update-test-infrastructure
Update test infrastructure
- Loading branch information
Showing
13 changed files
with
69 additions
and
250 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 |
---|---|---|
|
@@ -23,7 +23,9 @@ jobs: | |
astropy-version: ['<5.0', '<5.1'] | ||
numpy-version: ['<1.20', '<1.21', '<1.22'] | ||
scipy-version: ['<1.6', '<1.7'] | ||
matplotlib-version: ['<3.4', '<3.5'] | ||
speclite-version: ['==0.19'] | ||
desiutil-version: ['3.4.2'] | ||
desimodel-version: ['0.19.1'] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -40,11 +42,13 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip wheel setuptools | ||
python -m pip install pytest pytest-astropy pyyaml | ||
# python -m pip install -r requirements.txt | ||
python -m pip install 'scipy${{ matrix.scipy-version }}' | ||
python -m pip install 'matplotlib${{ matrix.matplotlib-version }}' | ||
python -m pip install 'astropy${{ matrix.astropy-version }}' | ||
python -m pip install 'numpy${{ matrix.numpy-version }}' | ||
python -m pip install 'speclite${{ matrix.speclite-version }}' | ||
python -m pip install git+https://github.com/desihub/desiutil.git@${{ matrix.desiutil-version }} | ||
python -m pip install git+https://github.com/desihub/desimodel.git@${{ matrix.desimodel-version }} | ||
- name: Run the test | ||
run: pytest | ||
|
||
|
@@ -55,7 +59,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: [3.8] | ||
python-version: [3.9] | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -72,7 +76,9 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip wheel setuptools | ||
python -m pip install pytest pytest-astropy coveralls | ||
python -m pip install pyyaml numpy\<1.21 scipy\<1.6 matplotlib\<3.3 astropy\<5.0 | ||
python -m pip install pyyaml numpy\<1.21 scipy\<1.6 astropy\<5.0 speclite==0.19 | ||
python -m pip install git+https://github.com/desihub/[email protected] | ||
python -m pip install git+https://github.com/desihub/[email protected] | ||
- name: Run the test with coverage | ||
run: pytest --cov | ||
|
@@ -136,7 +142,7 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip wheel setuptools flake8 | ||
- name: Test the style; failures are allowed | ||
- name: Test the style; failures are not allowed | ||
# This is equivalent to an allowed falure. | ||
continue-on-error: true | ||
# continue-on-error: true | ||
run: flake8 specsim --count --max-line-length=100 |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ build: | |
jobs: | ||
pre_install: | ||
- git update-index --assume-unchanged docs/conf.py docs/rtd_environment.yaml | ||
- python -m pip install git+https://github.com/desihub/[email protected] | ||
|
||
conda: | ||
environment: docs/rtd_environment.yaml | ||
|
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.
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
Oops, something went wrong.