-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
65 changed files
with
92,309 additions
and
1,854 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: test-doc | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
|
||
# Perform tests with coverage, build the doc and run the tests in the doc (only for python 3.8 on ubuntu) | ||
test-cov-and-doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout branch ${{ github.head_ref }}" | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- name: "Set up Python on Ubuntu" | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
# Test Rust code | ||
- name: "Test with coverage, build and test doc" | ||
run: | | ||
# Install virtualenv | ||
pip install virtualenv | ||
# Create and activate a new virtualenv | ||
virtualenv mocpy-env | ||
source mocpy-env/bin/activate | ||
# For debug purpose (see dependencies) | ||
cargo tree | ||
# Install maturin | ||
pip install maturin | ||
# Build and install mocpy | ||
maturin develop --release | ||
# Install pytest-cov, needed to test with coverage | ||
pip install -r requirements/tests.txt | ||
pip install pytest-cov | ||
# Run test with coverage and doctests | ||
python -m pytest -v -s --doctest-modules python/mocpy --cov-report=term --cov=python/mocpy | ||
# Install dependencies needed to build the docs | ||
pip install -r requirements/docs.txt | ||
sudo apt-get install pandoc | ||
# Compile the docs and run the test examples | ||
cd ./docs | ||
# * Generate the HTML files | ||
make html | ||
deactivate |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: emscripten | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
# Allows to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
emscripten: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- run: pip install pyodide-build | ||
- shell: bash | ||
run: | | ||
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV | ||
echo PYTHON_VERSION=$(pyodide config get python_version | cut -d "." -f 1-2) >> $GITHUB_ENV | ||
- uses: mymindstorm/setup-emsdk@v12 | ||
with: | ||
version: ${{ env.EMSCRIPTEN_VERSION }} | ||
actions-cache-folder: emsdk-cache | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: wasm32-unknown-emscripten | ||
args: --release --out dist -i ${{ env.PYTHON_VERSION }} | ||
sccache: 'true' | ||
rust-toolchain: nightly | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wasm-wheels | ||
path: dist |
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "MOCPy" | ||
version = "0.12.3" | ||
version = "0.13.0" | ||
authors = [ | ||
"Matthieu Baumann <[email protected]>", | ||
"Thomas Boch <[email protected]>", | ||
|
@@ -33,7 +33,7 @@ healpix = { package = "cdshealpix", version = "0.6" } | |
# healpix = { package = "cdshealpix", git = 'https://github.com/cds-astro/cds-healpix-rust', branch = 'master' } | ||
|
||
[dependencies.numpy] | ||
version = "0.18" | ||
version = "0.17" | ||
|
||
[dependencies.ndarray] | ||
version = "0.15" | ||
|
@@ -42,7 +42,7 @@ default-features = false # do not include the default features, and optionally | |
features = ["rayon"] | ||
|
||
[dependencies.pyo3] | ||
version = "0.18" | ||
version = "0.17.3" | ||
features = ["extension-module"] | ||
|
||
[profile.release] | ||
|
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
Oops, something went wrong.