Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create github actions #200

Merged
merged 11 commits into from
Jan 12, 2021
33 changes: 0 additions & 33 deletions .github/workflows/blank.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/spherical_geometry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Spherical Geometry CI

# Change 'on' section and add code coverage.

on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:

jobs:
build:
name: Python Testing ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
- name: Test with pytest
run: |
pytest

doc_build:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use RTD PR builder?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed .travis.yml. I renamed the github action blank.yml to spherical_geometry.yml.

name: Document Build
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
sudo apt-get install graphviz texlive-latex-extra dvipng
python -m pip install --upgrade pip
python -m pip install -e .[docs]
- name: Build documents with sphinx
run: |
sphinx-build docs build/docs
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.