-
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.
Merge branch 'latest' into load_signatures_40
- Loading branch information
Showing
6 changed files
with
366 additions
and
71 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,64 @@ | ||
name: "Dev env instructions" | ||
on: | ||
pull_request: | ||
branches: [latest] | ||
push: | ||
branches: [latest] | ||
jobs: | ||
nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Cache nix store | ||
id: cache-nix | ||
uses: actions/cache@v2 | ||
with: | ||
path: /nix/store | ||
key: nix-${{ hashFiles('shell.nix') }}-${{ hashFiles('nix/**') }} | ||
|
||
- uses: cachix/install-nix-action@v12 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-20.09 | ||
|
||
- run: nix-shell --command "tox -e py39" | ||
|
||
mamba: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: cache conda | ||
uses: actions/cache@v1 | ||
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@e23d871804685e8c52189e5bd45e9145019f10af | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.9 | ||
channels: conda-forge,bioconda | ||
miniforge-variant: Mambaforge | ||
miniforge-version: latest | ||
use-mamba: true | ||
mamba-version: "*" | ||
activate-environment: sourmash_dev | ||
auto-activate-base: false | ||
use-only-tar-bz2: true | ||
|
||
- name: install dependencies | ||
shell: bash -l {0} | ||
run: mamba install tox-conda rust git compilers pandoc | ||
|
||
- name: run tests for 3.9 | ||
shell: bash -l {0} | ||
run: tox -e py39 |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"niv": { | ||
"branch": "master", | ||
"description": "Easy dependency management for Nix projects", | ||
"homepage": "https://github.com/nmattia/niv", | ||
"owner": "nmattia", | ||
"repo": "niv", | ||
"rev": "3cd7914b2c4cff48927e11c216dadfab7d903fe5", | ||
"sha256": "1agq4nvbhrylf2s77kb4xhh9k7xcwdwggq764k4jgsbs70py8cw3", | ||
"type": "tarball", | ||
"url": "https://github.com/nmattia/niv/archive/3cd7914b2c4cff48927e11c216dadfab7d903fe5.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
}, | ||
"nixpkgs": { | ||
"branch": "nixpkgs-unstable", | ||
"description": "Nix Packages collection", | ||
"homepage": "", | ||
"owner": "NixOS", | ||
"repo": "nixpkgs", | ||
"rev": "d1f97a5eb5115289071d8449f26e7b92ce6b6709", | ||
"sha256": "098rb747w4p5lxz74bj738bpjd4xjn0ahssjp9n8237dmmx3wg5p", | ||
"type": "tarball", | ||
"url": "https://github.com/NixOS/nixpkgs/archive/d1f97a5eb5115289071d8449f26e7b92ce6b6709.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
}, | ||
"rust-overlay": { | ||
"branch": "master", | ||
"description": null, | ||
"homepage": null, | ||
"owner": "oxalica", | ||
"repo": "rust-overlay", | ||
"rev": "0bb9ef6d8b34e5579d7384201f3106a49ce3deca", | ||
"sha256": "09cva1r53x1ihyzbssdscx4n5913pra8f006q095ww9wvfvz8bxf", | ||
"type": "tarball", | ||
"url": "https://github.com/oxalica/rust-overlay/archive/0bb9ef6d8b34e5579d7384201f3106a49ce3deca.tar.gz", | ||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" | ||
} | ||
} |
Oops, something went wrong.