fix negative stride (torch); fix inferring nv
in icwt
#137
Workflow file for this run
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
name: ssqueezepy CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "ssqueezepy/*" | |
- "tests/*" | |
- ".github/workflows/*" | |
- ".coveragerc" | |
- "requirements.txt" | |
- "requirements-dev.txt" | |
push: | |
branches: | |
- master | |
jobs: | |
build-mamba: | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.10] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Micromamba environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.8-0' | |
environment-file: environment.yaml | |
init-shell: bash | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: additional setup | |
shell: bash -l {0} | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements-dev.txt | |
- name: Set up ssqueezepy | |
run: pip install -e . | |
- name: Test | |
shell: bash -l {0} | |
run: > | |
pycodestyle --max-line-length=85 | |
--ignore=E221,E241,E225,E226,E402,E722,E741,E272,E266,E302,E731,E702,E201,E129,E203,E202,W503,W504 | |
ssqueezepy | |
pytest tests/ -s --cov=ssqueezepy --cov-report=xml | |
- name: codecov upload coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./ |