name: CI-crontests

on:
  push:
    # Run this job on release tags, but not on pushes to the main branch
    tags:
    - '*'
  schedule:
    # run every Monday at 5am UTC
    - cron: '0 5 * * 1'

permissions:
  contents: read

jobs:
  tests:
    name: ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
    strategy:
      fail-fast: false
      matrix:
        include:
          - name: Python 3.9 with all dependencies with remote data
            os: ubuntu-latest
            python: '3.9'
            toxenv: py39-test-alldeps-devdeps-online
            toxargs: -v
            toxposargs: -v --durations=50

          - name: pre-repease dependencies with all dependencies
            os: ubuntu-latest
            python: '3.10'
            toxenv: py310-test-alldeps-predeps
            toxargs: -v
            toxposargs: -v

    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}
    - name: Install Python dependencies
      run: python -m pip install --upgrade tox
    - name: Run tests
      run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}

name: CI-crontests

on:
  push:
    # Run this job on release tags, but not on pushes to the main branch
    tags:
    - '*'
  schedule:
    # run every Monday at 5am UTC
    - cron: '0 5 * * 1'

permissions:
  contents: read

jobs:
  tests:
    name: ${{ matrix.name }}
    runs-on: ${{ matrix.os }}
    if: github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
    strategy:
      fail-fast: false
      matrix:
        include:
          - name: Python 3.9 with all dependencies with remote data
            os: ubuntu-latest
            python: '3.9'
            toxenv: py39-test-alldeps-devdeps-online
            toxargs: -v
            toxposargs: -v --durations=50

          - name: pre-release dependencies with all dependencies
            os: ubuntu-latest
            python: '3.10'
            toxenv: py310-test-alldeps-predeps
            toxargs: -v
            toxposargs: -v

    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}
    - name: Install Python dependencies
      run: python -m pip install --upgrade tox
    - name: Run tests
      run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}

Fix typo in workflow name
TST: Fix typo in workflow name
