-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #2793 - Add pixi, first mentioned in #2707 (comment) - Use tabs in docs to help to point out only one option is needed - Default recommendation is conda, add `dev.yml` with dev dependencies
- Loading branch information
Showing
9 changed files
with
12,476 additions
and
32 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 |
---|---|---|
@@ -1 +1,6 @@ | ||
use flake | ||
#use flake | ||
|
||
PATH=~/.pixi/bin:$PATH | ||
|
||
watch_file pixi.lock | ||
eval "$(pixi shell-hook)" |
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 |
---|---|---|
|
@@ -3,6 +3,9 @@ on: | |
pull_request: | ||
push: | ||
branches: [latest] | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/latest' }} | ||
jobs: | ||
nix: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -23,8 +26,32 @@ jobs: | |
|
||
- run: nix develop --command bash -c "tox -e py310" | ||
|
||
pixi: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-14] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: set up pixi | ||
uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.26.1 | ||
cache: true | ||
frozen: true | ||
|
||
- name: run tests for 3.10 | ||
shell: pixi run bash {0} | ||
run: tox -e py310 | ||
|
||
mamba: | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-14] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -42,20 +69,11 @@ jobs: | |
- name: setup conda | ||
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca | ||
with: | ||
auto-update-conda: true | ||
python-version: "3.10" | ||
channels: conda-forge,bioconda | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
mamba-version: "*" | ||
environment-file: dev.yml | ||
activate-environment: sourmash_dev | ||
auto-activate-base: false | ||
use-only-tar-bz2: true | ||
|
||
- name: install dependencies | ||
shell: bash -l {0} | ||
run: mamba install 'tox>=3.27,<4' tox-conda rust git compilers pandoc libstdcxx-ng | ||
|
||
- name: run tests for 3.10 | ||
shell: bash -l {0} | ||
|
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 |
---|---|---|
|
@@ -37,3 +37,6 @@ wasm-pack.log | |
# nix | ||
.direnv/ | ||
result | ||
|
||
# pixi | ||
.pixi/ |
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ dist: FORCE | |
$(PYTHON) -m build --sdist | ||
|
||
test: .PHONY | ||
tox -e py39 | ||
tox -e py310 | ||
cargo test | ||
|
||
doc: .PHONY | ||
|
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,12 @@ | ||
name: sourmash_dev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- clangdev >=16.0.6,<16.1 | ||
- cxx-compiler >=1.7.0,<1.8 | ||
- git 2.41.0.* | ||
- libclang >=16.0.6,<16.1 | ||
- pandoc 3.1.3.* | ||
- python 3.10.* | ||
- rust >=1.80.0,<1.81 | ||
- tox >=4.11.0,<5 |
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.