-
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.
update install instructions, cleanup pixi.toml to avoid duplicate inf…
…o, fix doc building in nix
- Loading branch information
Showing
9 changed files
with
8,428 additions
and
31 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 |
---|---|---|
|
@@ -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,31 @@ 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.13.0 | ||
cache: 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: | ||
|
@@ -34,28 +60,18 @@ jobs: | |
uses: actions/cache@v4 | ||
env: | ||
CACHE_NUMBER: 0 | ||
with: | ||
path: ~/conda_pkgs_dir | ||
key: | ||
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} | ||
|
||
- name: setup conda | ||
uses: conda-incubator/setup-miniconda@392cf345b1784333caa1a1185081c71e6ffd61bc | ||
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: sourmash_dev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- clangdev = ">=16.0.6,<17.1" | ||
- cxx-compiler = ">=1.7.0,<1.8" | ||
- git = "2.41.0.*" | ||
- libclang = ">=16.0.6,<17.1" | ||
- pandoc = "3.1.3.*" | ||
- python = "3.10.*" | ||
- rust = ">=1.76.0,<1.77" | ||
- 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
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 |
---|---|---|
|
@@ -130,6 +130,8 @@ | |
cargo-deny | ||
#cargo-semver-checks | ||
nixpkgs-fmt | ||
|
||
pixi | ||
]; | ||
|
||
shellHook = '' | ||
|
Oops, something went wrong.