Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try speeding up CI build #193

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 26 additions & 33 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ on:
permissions: write-all

jobs:
tests:
runs-on: ubuntu-20.04
unit:
runs-on: ubuntu-22.04
strategy:
matrix:
test:
- utests
- tests-api-mock
- tests-server
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,19 +34,28 @@ jobs:
working-directory: bert_e/tests/images
- name: Install tox
run: pip install tox
- run: tox -e utests
- run: tox -e tests-api-mock
- run: tox -e ${{ matrix.test }}
- run: tox -e coverage-report
- run: tox -e tests-server
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
flags: unittests,server,api-mock
flags: ${{ matrix.test }}

tests-noqueue:
runs-on: ubuntu-20.04
integration:
strategy:
matrix:
test:
- tests-noqueue
- tests
class:
- BuildFailedTest
- RepositoryTests
- TestBertE
- TestQueueing
- TaskQueueTests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -53,38 +68,16 @@ jobs:
run: pip install -r requirements.txt
- name: Install tox
run: pip install tox
- run: tox -e tests-noqueue
- run: tox -e ${{ matrix.test }} -- ${{ matrix.class }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
flags: tests-noqueue

all-tests:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install tox
run: pip install tox
- run: tox -e tests
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: ${{ github.repository }}
flags: all-tests
flags: ${{ matrix.test }}-${{ matrix.class }}

lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
Loading