-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into unfixable_hdr_key_workaround
- Loading branch information
Showing
39 changed files
with
1,478 additions
and
621 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,104 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# run every Monday at 6am UTC | ||
- cron: '0 6 * * 1' | ||
|
||
env: | ||
SETUP_XVFB: True # avoid issues if mpl tries to open a GUI window | ||
TOXARGS: '-v' | ||
|
||
jobs: | ||
ci-tests: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
if: "!(contains(github.event.head_commit.message, '[skip ci]') || contains(github.event.head_commit.message, '[ci skip]'))" | ||
strategy: | ||
matrix: | ||
include: | ||
- name: 'ubuntu-py38-oldestdeps' | ||
os: ubuntu-latest | ||
python: '3.8' | ||
# Test the oldest supported dependencies on the oldest supported Python | ||
tox_env: 'py38-test-oldestdeps' | ||
|
||
- name: 'macos-py310-astroscrappy11' | ||
# Keep this test until astroscrappy 1.1.0 is the oldest supported | ||
# version. | ||
os: macos-latest | ||
python: '3.10' | ||
tox_env: 'py310-test-astroscrappy11' | ||
|
||
- name: 'ubuntu-py39' | ||
os: ubuntu-latest | ||
python: '3.9' | ||
tox_env: 'py39-test-alldeps-numpy119-cov' | ||
|
||
- name: 'ubuntu-py39-bottleneck' | ||
os: ubuntu-latest | ||
python: '3.9' | ||
tox_env: 'py39-test-alldeps-numpy119-cov-bottleneck' | ||
|
||
- name: 'ubuntu-py310' | ||
os: ubuntu-latest | ||
python: '3.10' | ||
tox_env: 'py310-test-alldeps-numpy121' | ||
|
||
- name: 'macos-py39' | ||
os: macos-latest | ||
python: '3.9' | ||
tox_env: 'py39-test-alldeps' | ||
|
||
- name: 'windows-py310' | ||
os: windows-latest | ||
python: '3.10' | ||
tox_env: 'py310-test-alldeps' | ||
|
||
- name: 'ubuntu-codestyle' | ||
os: ubuntu-latest | ||
python: '3.10' | ||
tox_env: 'pycodestyle' | ||
|
||
- name: 'ubuntu-build_docs' | ||
os: ubuntu-latest | ||
python: '3.10' | ||
tox_env: 'build_docs' | ||
|
||
- name: 'ubuntu-py310-test-alldeps-devdeps' | ||
os: ubuntu-latest | ||
python: '3.10' | ||
tox_env: 'py310-test-alldeps-devdeps' | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install base dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox wheel | ||
- name: Install graphviz dependency | ||
if: "endsWith(matrix.tox_env, 'build_docs')" | ||
run: sudo apt-get -y install graphviz | ||
- name: Print Python, pip, setuptools, and tox versions | ||
run: | | ||
python -c "import sys; print(f'Python {sys.version}')" | ||
python -c "import pip; print(f'pip {pip.__version__}')" | ||
python -c "import setuptools; print(f'setuptools {setuptools.__version__}')" | ||
python -c "import tox; print(f'tox {tox.__version__}')" | ||
- name: Run tests | ||
if: "! matrix.use_remote_data" | ||
run: | | ||
tox -e ${{ matrix.tox_env }} -- ${{ matrix.toxposargs }} | ||
# - name: Run tests with remote data | ||
# if: "matrix.use_remote_data" | ||
# run: tox -e ${{ matrix.tox_env }} -- --remote-data=any | ||
- name: Upload coverage to codecov | ||
if: "endsWith(matrix.tox_env, '-cov')" | ||
uses: codecov/codecov-action@v2 |
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 |
---|---|---|
|
@@ -54,6 +54,7 @@ pip-wheel-metadata | |
.tox | ||
.*.sw[op] | ||
*~ | ||
*.asv | ||
|
||
# Mac OSX | ||
.DS_Store | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build: | |
image: latest | ||
|
||
python: | ||
version: 3.7 | ||
version: 3.8 | ||
install: | ||
- method: pip | ||
path: . | ||
|
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
Oops, something went wrong.