Skip to content

Commit

Permalink
Improve CI definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Mar 13, 2024
1 parent dd658da commit 6c95407
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 6c95407

Please sign in to comment.