Skip to content

Commit

Permalink
Testing GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Damian authored and Adrian Damian committed Dec 9, 2021
1 parent e438100 commit 1f95817
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,29 @@ jobs:
tests:
needs: egginfo
runs-on: ubuntu-latest
name: ${{ matrix.python-version }} with ${{ matrix.astropy-version }}
name: ${{ matrix.python-version }}
strategy:
fail-fast: true
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
include:
# astropy-version: [latest ,astropy42, astropy43, astropy50]
# 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-version }}
# - name: Install tox
# run: python -m pip install --upgrade tox

# - name: Python ${{ matrix.python-version }} with astropy
# run: |
# # remove "." from matrix.python-version to get the defaults tox python versions
# tox_python_target=$(echo py${{matrix.python-version}} | sed 's/\.//')
# echo "Tox python target: " $tox_python_target
# tox -e $tox_python_target-test

- name: oldest dependencies
python: 3.7
toxenv: py37-test-oldestdeps
toxargs: -v

- name: astropy dev
python: 3.9
toxenv: py310-test-devastropy
toxargs: -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-version }}
- name: Install tox
run: python -m pip install --upgrade tox

- name: Python ${{ matrix.python-version }} with astropy
run: |
# remove "." from matrix.python-version to get the defaults tox python versions
tox_python_target=$(echo py${{matrix.python-version}} | sed 's/\.//')
echo "Tox python target: " $tox_python_target
tox -e $tox_python_target-test
mac_windows:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -103,9 +90,23 @@ jobs:
with:
file: ./coverage.xml

astropydev:
devastropy:
# TODO: this job should be allowed to fail except that the functionality
# is not available in actions yet.
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Install tox
run: python -m pip install --upgrade tox
- name: Run tests against astropy dev
run: tox -e py310-test-devastropy

oldestastropy:
runs-on: ubuntu-latest
needs: tests
steps:
Expand All @@ -117,7 +118,7 @@ jobs:
- name: Install tox
run: python -m pip install --upgrade tox
- name: Run tests against astropy dev
run: tox -e py38-astropydev
run: tox -e py38-test-oldestastrop

#publish:
#needs: coverage
Expand Down

0 comments on commit 1f95817

Please sign in to comment.