Skip to content

Commit

Permalink
keep khmer and hypothesis in separate CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Dec 10, 2020
1 parent f580595 commit 27ed5be
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/hypothesis.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 4 additions & 14 deletions .github/workflows/khmer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 khmer master branch
run: tox -e khmer_master,coverage
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27ed5be

Please sign in to comment.