diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b294404..6554da9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,22 +3,46 @@ name: Local test on: push: - branches: [ "master", "my", "devel" ] + branches: [ "master", "devel" ] pull_request: - branches: [ "master", "my", "devel" ] + branches: [ "master", "devel" ] jobs: - build: + quicktest: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Install dependencies - run: sudo apt-get update && sudo apt-get install -y python3 python3-pip mafft ncbi-blast+ && pip3 install pytest pytest-cov - - name: Run build - run: pip3 install . - - name: Run tests and collect coverage - run: pytest -v -m "not overnight" --cov=./src - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - uses: actions/checkout@v3 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y python3 python3-pip mafft ncbi-blast+ + + - name: Run build + run: pip3 install .[test] + + - name: Run tests and collect coverage + run: pytest -v -m "not slow" --cov=./src + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + slowtest: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + testcase: ["tests/test_end_to_end.py::test_large", "tests/test_end_to_end.py::test_large_csv", "tests/test_end_to_end.py::test_large_hxb2"] + + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y python3 python3-pip mafft ncbi-blast+ + + - name: Run build + run: pip3 install .[test] + + - name: Run tests and collect coverage + run: pytest -v ${{ matrix.testcase }}