Skip to content
New issue

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

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

Already on GitHub? # to your account

Debug Github actions #77

Merged
merged 9 commits into from
Jun 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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