1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Check base branch
21- uses : actions/github-script@v3
21+ uses : actions/github-script@v6
2222 if : github.event_name == 'pull_request'
2323 with :
2424 script : |
@@ -91,20 +91,23 @@ jobs:
9191
9292 steps :
9393 - name : Checkout code
94- uses : actions/checkout@v2
94+ uses : actions/checkout@v3
9595 with :
9696 fetch-depth : 0
9797 - name : Set up Python
98- uses : actions/setup-python@v2
98+ uses : actions/setup-python@v3
9999 with :
100100 python-version : ${{ matrix.python }}
101101 - name : Install language-pack-fr and tzdata
102102 if : startsWith(matrix.os, 'ubuntu')
103103 run : |
104104 sudo apt-get update
105105 sudo apt-get install language-pack-fr tzdata
106- - name : Install Python dependencies
107- run : python -m pip install --upgrade tox codecov
106+ - name : Install tox
107+ run : python -m pip install --upgrade tox
108+ - name : Install codecov
109+ if : ${{ contains(matrix.toxenv,'-cov') }}
110+ run : python -m pip install codecov
108111 - name : Run tests
109112 run : tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
110113 # TODO: Do we need --gcov-glob "*cextern*" ?
@@ -130,11 +133,11 @@ jobs:
130133
131134 steps :
132135 - name : Checkout code
133- uses : actions/checkout@v2
136+ uses : actions/checkout@v3
134137 with :
135138 fetch-depth : 0
136139 - name : Set up Python
137- uses : actions/setup-python@v2
140+ uses : actions/setup-python@v3
138141 with :
139142 python-version : ${{ matrix.python }}
140143 - name : Install language-pack-de and tzdata
@@ -143,39 +146,41 @@ jobs:
143146 sudo apt-get update
144147 sudo apt-get install language-pack-de tzdata
145148 - name : Install Python dependencies
146- run : python -m pip install --upgrade tox codecov
149+ run : python -m pip install --upgrade tox
147150 - name : Run tests
148151 run : tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
149152
150- parallel_and_32bit :
151- name : 32-bit and parallel
153+ parallel-double :
154+ name : Parallel and double
152155 runs-on : ubuntu-latest
153156 needs : initial_checks
154- container :
155- image : quay.io/pypa/manylinux2014_i686
156157 steps :
157- # TODO: Use newer checkout actions when https://github.com/actions/checkout/issues/334 fixed
158158 - name : Checkout code
159- uses : actions/checkout@v1
159+ uses : actions/checkout@v3
160160 with :
161161 fetch-depth : 0
162+ - name : Set up Python
163+ uses : actions/setup-python@v3
164+ with :
165+ python-version : 3.8
166+ - name : Install language-pack-de and tzdata
167+ run : |
168+ sudo apt-get update
169+ sudo apt-get install language-pack-de tzdata
170+ - name : Install Python dependencies
171+ run : python -m pip install --upgrade tox
162172 - name : Write configuration items to standard location to make sure they are ignored in parallel mode
163173 run : |
164174 mkdir -p $HOME/.astropy/config/
165175 printf "unicode_output = True\nmax_width = 500" > $HOME/.astropy/config/astropy.cfg
166- # In addition to testing 32-bit, we also use the 3.8 builds to
167- # test the ability to run the test suite in parallel.
168- # Numpy is pinned to avoid building it from source for numpy 1.21.5
169- - name : Install dependencies for Python 3.8
170- run : /opt/python/cp38-cp38/bin/pip install tox
171- - name : Run tests for Python 3.8
172- run : /opt/python/cp38-cp38/bin/python -m tox -e py38-numpy120-test -- -n=4 --durations=50
173- # We use the 3.8 build to check that running tests twice in a row in the
176+ # We test the ability to run the test suite in parallel.
177+ - name : Run parallel tests
178+ run : tox -e py38-test -- -n=4 --durations=50
179+ # We check that running tests twice in a row in the
174180 # same Python session works without issues. This catches cases where
175181 # running the tests changes the module state permanently. Note that we
176182 # shouldn't also test the parallel build here since that enforces a degree
177183 # of isolation of tests which will interfere with what we are trying to do
178184 # here.
179- # Numpy is pinned to avoid building it from source for numpy 1.21.5
180- - name : Run tests for Python 3.8
181- run : /opt/python/cp38-cp38/bin/python -m tox -e py38-numpy120-test-double
185+ - name : Run double tests
186+ run : tox -e py38-test-double
0 commit comments