Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Test against astropy 4.2rc1 #908

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 1 addition & 92 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,6 @@ on:
- cron: '0 6 * * 1'

jobs:
pep_and_audit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Lint with flake8
run: |
python -m pip install --upgrade pip flake8
flake8 ginga --count
# Make sure that packaging will work
- name: pep517 build
run: |
python -m pip install --upgrade setuptools pep517 twine
python -m pep517.build --source .
twine check dist/*
- name: Security audit
run: |
python -m pip install --upgrade bandit
bandit -r . -c .bandit.yaml

multi_oses:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -52,74 +26,9 @@ jobs:
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
python -m pip install PyQt5 scipy photutils
python -m pip install -e .[test]
- name: Install Qt
uses: jurplel/install-qt-action@8ffcd60
- name: Run tests
run: pytest --pyargs ginga doc -sv

older_deps_tests:
runs-on: ubuntu-16.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
python -m pip install PyQt5 numpy==1.16 astropy==3.2
python -m pip install PyQt5 scipy astropy==4.2rc1 photutils
python -m pip install -e .[test]
- name: Install Qt
uses: jurplel/install-qt-action@8ffcd60
- name: Run tests
run: pytest --pyargs ginga doc -sv

# TODO: Lift Python 3.8 pin when numpy and scipy have wheels for Python 3.9
dev_deps_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
python -m pip install PyQt5 matplotlib
python -m pip install git+https://github.com/astropy/astropy.git@master#egg=astropy
python -m pip install -e .[test]
- name: Install Qt
uses: jurplel/install-qt-action@8ffcd60
- name: Run tests
run: pytest --pyargs ginga doc -sv

conda_linux_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install and build
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda install pip setuptools setuptools_scm
$CONDA/bin/conda install qtpy pyqt matplotlib
$CONDA/bin/conda install attrs astropy pytest-astropy -c conda-forge
$CONDA/bin/pip install -e .
- name: Run tests
run: $CONDA/bin/pytest --pyargs ginga doc -sv