Skip to content

Commit

Permalink
Split the pytest across multiple runners
Browse files Browse the repository at this point in the history
  • Loading branch information
petecheslock committed Aug 31, 2023
1 parent 88dd361 commit 13efab6
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/appmap-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ on:
pull_request:

jobs:
test:
record-appmaps:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4, 5]

services:
postgres:
Expand Down Expand Up @@ -38,10 +43,33 @@ jobs:
POSTGRES_USER: misago
POSTGRES_PASSWORD: misago
POSTGRES_HOST: localhost
run: |
pytest --cov=misago
run: pytest --cov=misago --splits 5 --group ${{ matrix.group }}

- name: Archive AppMaps
- name: Save AppMap archive
uses: getappmap/archive-action@v1
with:
archive-id: ${{ matrix.group }}

appmap-analysis:
runs-on: ubuntu-latest

needs: [ record-appmaps ]

steps:
- uses: actions/checkout@v3
- name: Install AppMap tools
uses: getappmap/install-action@v1
with:
install-appmap-library: false

- name: Merge AppMaps
if: (success() || failure())
uses: getappmap/archive-action/merge@v1
with:
revision: ${{ github.event.pull_request.base.sha }}
archive-count: 5

- name: Archive AppMaps
uses: getappmap/archive-action@v1
with:
revision: ${{ github.event.pull_request.base.sha }}

0 comments on commit 13efab6

Please sign in to comment.