-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dev env instructions #2990
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7915f51
update install instructions, cleanup pixi.toml to avoid duplicate inf…
luizirber 333b9cd
fix dev.yml syntax
luizirber 4477715
re-use pyproject.toml for pixi
luizirber 1b800dc
update pixi action
luizirber 9e713a2
update pixi.lock
luizirber 656632e
update mamba setup and env
luizirber 7f0b404
small docs and Makefile fixes
luizirber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How the tabs look like: https://sourmash--2990.org.readthedocs.build/en/2990/developer.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it!