diff --git a/.github/workflows/hypothesis.yml b/.github/workflows/hypothesis.yml new file mode 100644 index 0000000000..cf5fa5ea25 --- /dev/null +++ b/.github/workflows/hypothesis.yml @@ -0,0 +1,28 @@ +name: Hypothesis tests + +on: + push: + branches: [latest] + pull_request: + branches: [latest] + schedule: + - cron: "0 0 * * *" # daily + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: "3.7" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox + + - name: Run Hypothesis tests + run: tox -e hypothesis,coverage diff --git a/.github/workflows/khmer.yml b/.github/workflows/khmer.yml index a895827dac..056e5ae1b1 100644 --- a/.github/workflows/khmer.yml +++ b/.github/workflows/khmer.yml @@ -22,20 +22,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -e .[test] + pip install tox - name: Run tests with latest released khmer - run: | - python -m pip install khmer - python -m pytest -k test_nodegraph --cov=. --cov-report=xml - - - name: Run tests with khmer master tests - run: | - python -m pip install -U git+https://github.com/dib-lab/khmer.git#egg=khmer - python -m pytest -k test_nodegraph --cov=. --cov-report=xml + run: tox -e khmer,coverage - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 - with: - file: ./coverage.xml - fail_ci_if_error: true + - name: Run tests with latest released khmer + run: tox -e khmer_master,coverage diff --git a/tox.ini b/tox.ini index d1c2807b26..7ab78f4187 100644 --- a/tox.ini +++ b/tox.ini @@ -200,9 +200,9 @@ source = src/sourmash/ [gh-actions] python = - 3.7: py37, khmer, khmer_master, coverage, codecov + 3.7: py37, coverage, codecov 3.8: py38, docs, package_description, fix_lint, coverage, codecov - 3.9: py39, hypothesis, coverage, codecov + 3.9: py39, coverage, codecov [flake8] max-complexity = 22