Skip to content

Commit

Permalink
Merge pull request #77 from zonca/github_actions
Browse files Browse the repository at this point in the history
Debug Github actions
  • Loading branch information
zonca authored Jun 30, 2021
2 parents c7fd658 + cf805dd commit 2a994eb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2,125 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,6 @@ jobs:
python: 3.8
toxenv: py38-test-alldeps-cov

- name: OS X - Python 3.8 with all optional dependencies
os: macos-latest
python: 3.8
toxenv: py38-test-alldeps

- name: Windows - Python 3.8 with all optional dependencies
os: windows-latest
python: 3.8
toxenv: py38-test-alldeps

# - name: Python 3.7 with oldest supported version of all dependencies
# os: ubuntu-16.04
# python: 3.7
# toxenv: py37-test-oldestdeps

# - name: Python 3.8 with latest dev versions of key dependencies
# os: ubuntu-latest
# python: 3.8
# toxenv: py38-test-devdeps

# - name: Test building of Sphinx docs
# os: ubuntu-latest
# python: 3.x
Expand All @@ -67,6 +47,10 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install required system packages
run: |
sudo apt-get update
sudo apt-get install graphviz texlive-latex-extra dvipng libopenmpi-dev openmpi-bin pandoc
- name: Set up python ${{ matrix.python }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
Expand All @@ -78,6 +62,10 @@ jobs:
- name: Test with tox
run: |
tox -e ${{ matrix.toxenv }}
- name: MPI test
if: ${{ matrix.toxenv != 'codestyle' }}
run: |
mpirun -np 2 .tox/${{ matrix.toxenv}}/bin/python -m pytest pysm3/tests/test_read_map_mpi.py;
# This is an example of how to upload coverage to codecov
# - name: Upload coverage to codecov
# if: "contains(matrix.toxenv, '-cov')"
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ build:

python:
version: 3.7
system_packages: true
install:
- method: pip
path: .
extra_requirements:
- docs
- all
system_packages: true

formats: []
144 changes: 0 additions & 144 deletions .travis.yml

This file was deleted.

23 changes: 4 additions & 19 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,34 +81,19 @@ Optionally replace with a newer anaconda environment::
Development install
-------------------

The development version is available in the `master` branch of the `GitHub repository <https://github.com/healpy/pysm>`_,
The development version is available in the `main` branch of the `GitHub repository <https://github.com/healpy/pysm>`_,
you can clone and install it with::

pip install .

A development installation as `pip install -e` is not supported by `poetry`.
Create a development installation with::

pip install -e

Execute the unit tests with::

pytest

Develop with poetry
-------------------

In order to have a reproducible environment, you can use `poetry`.

`poetry` also manages dependencies and a local virtualenv.

`Install poetry <https://python-poetry.org/docs/#installation>`_

Install the specific requirements used for develoment with::

poetry install

Run tests in the `poetry` environment::

poetry run pytest

Tutorials
=========

Expand Down
Loading

0 comments on commit 2a994eb

Please # to comment.