Skip to content

Commit

Permalink
Merge branch 'latest' into update/joss
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb authored Aug 16, 2023
2 parents 88dcbd9 + c35cc19 commit d7e6cdd
Show file tree
Hide file tree
Showing 89 changed files with 5,707 additions and 2,432 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ updates:
allow:
- dependency-type: "direct"
open-pull-requests-limit: 10
rebase-strategy: "disabled"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
python-version: '3.9'

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.0
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_ENVIRONMENT_MACOS: ${{ matrix.macos_target }}
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
Expand All @@ -55,11 +55,40 @@ jobs:
with:
path: './wheelhouse/sourmash*.whl'

build_wasm:
runs-on: ubuntu-20.04
env:
PYODIDE_VERSION: "0.23.0"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11.2"
- run: |
pip install pyodide-build==${PYODIDE_VERSION} "pydantic<2"
pyodide config get emscripten_version # trigger setup
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v12
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-emscripten
- run: |
export RUSTC_BOOTSTRAP=1
pyodide build
- uses: actions/upload-artifact@v3
with:
path: './dist/sourmash*.whl'


release:
name: Publish wheels
runs-on: ubuntu-20.04
if: startsWith(github.ref, 'refs/tags/v')
needs: build_wheels
needs: [build_wheels, build_wasm]

steps:
- name: Fetch wheels from artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_wheel_all_archs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.12.0
uses: pypa/cibuildwheel@v2.15.0
env:
CIBW_ENVIRONMENT_MACOS: ${{ matrix.macos_target }}
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/dev_envs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ jobs:
with:
fetch-depth: 0

- uses: cachix/install-nix-action@v18
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: sourmash-bio
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- run: nix run .# -- --version

- run: nix-shell --command "tox -e py39"
- run: nix-shell --command "tox -e py310"

mamba:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/hypothesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ jobs:
- name: Run Hypothesis tests
run: tox -e hypothesis,coverage

- name: Upload Python coverage to codecov
uses: codecov/codecov-action@v3
with:
flags: hypothesis-py
fail_ci_if_error: true
files: .tox/coverage.xml
9 changes: 8 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Start Redis
if: startsWith(runner.os, 'Linux') && (matrix.py == '3.9')
uses: supercharge/redis-github-action@4b67a313c69bc7a90f162e8d810392fffe10d3b5
uses: supercharge/redis-github-action@1.6.0
with:
redis-version: 6

Expand All @@ -73,3 +73,10 @@ jobs:
run: tox
env:
PYTHONDEVMODE: 1

- name: Upload Python coverage to codecov
uses: codecov/codecov-action@v3
with:
flags: python
fail_ci_if_error: true
files: .tox/coverage.xml
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,17 @@ jobs:

- uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: "1.64.0"
override: true

- name: check if README matches MSRV defined here
run: grep '1.56.1' src/core/README.md
run: grep '1.64.0' src/core/README.md

- name: Check if it builds properly
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
args: --all-features --tests

check_cbindgen:
name: "Check if cbindgen runs cleanly for generating the C headers"
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ sourmash.egg-info
*.so
.coverage
.pytest_cache
**/*.pyc
.python-version
src/sourmash/version.py
*.DS_Store
.tox
src/sourmash/_lowlevel*.py
src/sourmash/_lowlevel/*
.env
Pipfile
Pipfile.lock
target/
.eggs
.asv
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ repos:
# format using black
# when the full codebase is black, use it directly;
# while it isn't, let's use darker to format new/changed code
- repo: https://github.com/akaihola/darker
rev: 1.2.1
hooks:
- id: darker
- repo: https://github.com/akaihola/darker
rev: 1.7.1
hooks:
- id: darker
#- repo: https://github.com/psf/black
# rev: 20.8b1
# hooks:
Expand Down
Loading

0 comments on commit d7e6cdd

Please sign in to comment.