-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from seldon-code/micromamba
Micromamba
- Loading branch information
Showing
16 changed files
with
368 additions
and
339 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,38 @@ | ||
name: CI-Micromamba | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
name: test (${{ matrix.os }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ['3.10', '3.11'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
micromamba-version: latest | ||
environment-file: environment.yml | ||
|
||
- name: Create or update environment with Micromamba | ||
run: | | ||
micromamba create -n hariplotterenv -f environment.yml --yes | ||
- name: Install the package in editable mode | ||
run: | | ||
micromamba run -n hariplotterenv pip install -e . | ||
- name: Install pytest in the environment | ||
run: | | ||
micromamba run -n hariplotterenv micromamba install pytest --yes | ||
- name: Run tests with pytest | ||
run: | | ||
micromamba run -n hariplotterenv pytest |
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,22 +1,9 @@ | ||
# $ micromamba create -f environment.yml | ||
# $ micromamba activate hariplotterenv | ||
# | ||
|
||
name: hariplotterenv | ||
channels: | ||
- conda-forge | ||
# requirements: | ||
# build: | ||
# - {{ compiler('c') }} | ||
# - {{ compiler('c++') }} | ||
dependencies: | ||
- python>=3.10 | ||
- meson | ||
- numpy | ||
- pytest | ||
- coverage | ||
- matplotlib | ||
- networkx | ||
- pip | ||
- pip: | ||
- rich | ||
- rich-pixels | ||
- Pillow | ||
- -r requirements.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.