Skip to content

action for tests

action for tests #41

Workflow file for this run

name: test all
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
name: Test python API
defaults:
run:
working-directory: .
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install requirements
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# pip install pytest-cover

Check failure on line 21 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
- name: Run tests and collect coverage
run: |
python -c "import sys;print(sys.version)"
python -c "import sys;print(sys.path)"
python -c "import numpy as np"
python -c "from pywt import dwt2, idwt2"
pip install .
# python -m pip install .
python examples/example_bit.py
python examples/example_img.py
python examples/example_no_writing.py
python examples/example_str.py
python examples/example_str_multi.py
# pytest --cov .
# - name: Upload coverage reports to Codecov with GitHub Action
# uses: codecov/codecov-action@v3