Skip to content

Fix crash when running gnomonic projection near 180 degrees #37

Fix crash when running gnomonic projection near 180 degrees

Fix crash when running gnomonic projection near 180 degrees #37

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Build and Test (PR)
on:
pull_request:
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
- name: Configure conda and install code
shell: bash -l {0}
run: |
mamba install -y numpy "astropy>=4.0" matplotlib hpgeom setuptools_scm setuptools_scm_git_archive healsparse "pyproj>=3.1" flake8 pytest jupyter "nbconvert<7"
python -m pip install --no-deps .
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if it fails flake8 with default setup.cfg
flake8 . --count --show-source --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
pytest