Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Nov 3, 2023
1 parent 631a261 commit e39e6bc
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,38 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}

- run: pip install -U pip setuptools

- name: Setup conda
uses: s-weigand/setup-conda@v1
- uses: actions/checkout@v4
with:
activate-conda: true
- run: conda env update -n base -f environment.yml
fetch-depth: 0

- name: cache conda
uses: actions/cache@v3
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@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3
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 coverage dependencies
run: pip install pytest-cov pytest-dependency

- name: Build
run: python setup.py build_ext --inplace
# - name: Build
# run: python setup.py build_ext --inplace

- name: Install charcoal
run: pip install -e .
Expand Down

0 comments on commit e39e6bc

Please sign in to comment.