Bump astropy from 4.1 to 5.3.3 #157
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python application | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
DARK_CALIB_PATH: /tmp | |
SLACK_ICON: 🎉 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libgraphviz-dev | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .git,apps/*,documentation/*,dark_calibration/*,infrastructure/*,ReportEditor/*,reports_build/*,scripts/*,venv/*,conf_files/* | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Install in dev mode | |
run: | | |
python setup.py develop | |
- name: Test with pytest | |
run: | | |
pip install pytest | |
python setup.py test | |
- name: Prepare build latex reports | |
run: | | |
sudo apt-get install -y texlive-latex-recommended texlive-publishers texlive-bibtex-extra texlive-science | |
- name: Build latex reports | |
run: | | |
python setup.py gen_report | |
- name: Set failure state if needed | |
if: failure() | |
run: | | |
echo "FAILURE" | |
- name: Publish pdf reports | |
uses: actions/upload-artifact@v2 | |
with: | |
path: documentation/papers/latex/*/*.pdf | |