TST: Move remote data out of matrix
@@ -57,14 +57,6 @@ jobs:
toxenv: py38-test
toxargs: -v
- - name: Python 3.8 with all dependencies with remote data
- if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
- os: ubuntu-latest
- python: 3.8
- toxenv: py38-test-alldeps
- toxargs: -v
- toxposargs: --remote-data
-
steps:
- name: Checkout code
uses: actions/checkout@v2
@@ -75,9 +67,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install Python dependencies
- run: |
- python -m pip install --upgrade pip
- python -m pip install --upgrade tox
+ run: python -m pip install --upgrade tox
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
@@ -86,6 +76,27 @@ jobs:
with:
file: ./coverage.xml
+ # This needs to be outside of matrix because if is not supported
+ # for only one job in a matrix. But once that is supported, this can go
+ # back to the matrix above.
+ remote_data:
+ name: Python 3.8 with all dependencies with remote data
+ if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ - name: Set up Python
+ uses: actions/setup-python@v2
+ with:
+ python-version: '3.8'
+ - name: Install Python dependencies
+ run: python -m pip install --upgrade tox
+ - name: Run tests
+ run: tox -v -e py38-test-alldeps -- --remote-data
+
egg_info:
name: egg_info with Python 3.7
runs-on: ubuntu-latest
