removing libgfortran from build-publish. #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test and docs with casa | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
- name: Install test deps | |
run: | | |
pip install .[test,casa] | |
- name: Test with pytest | |
run: | | |
pytest | |
# if all tests succeed, then | |
# make sure the docs build OK | |
# (but don't deploy to gh-pages) | |
docs: | |
needs: tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install doc deps | |
run: | | |
pip install .[docs] | |
- name: Install Pandoc dependency for nbconvert | |
run: | | |
sudo apt-get install pandoc | |
- name: Clean docs build | |
run: | | |
make -C docs clean | |
- name: Cache/Restore the AS 209 measurement set | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-AS209 | |
with: | |
# files are stored in docs/tutorials/AS209_MS | |
path: docs/tutorials/AS209_MS | |
# we want to hash off of the build script | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('docs/tutorials/dl_and_tclean_AS209.py') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build the docs | |
run: | | |
make -C docs html | |