• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: Python Avatar
2
3on:
4  push:
5    branches: [ main ]
6  pull_request:
7    branches: [ main ]
8
9permissions:
10  contents: read
11
12jobs:
13  test:
14    name: Avatar [${{ matrix.shard }}]
15    runs-on: ubuntu-latest
16    strategy:
17      matrix:
18        shard: [
19           1/24,  2/24,  3/24,  4/24,
20           5/24,  6/24,  7/24,  8/24,
21           9/24, 10/24, 11/24, 12/24,
22          13/24, 14/24, 15/24, 16/24,
23          17/24, 18/24, 19/24, 20/24,
24          21/24, 22/24, 23/24, 24/24,
25        ]
26    steps:
27      - uses: actions/checkout@v3
28      - name: Set Up Python 3.11
29        uses: actions/setup-python@v4
30        with:
31          python-version: 3.11
32      - name: Install
33        run: |
34          python -m pip install --upgrade pip
35          python -m pip install .[avatar,pandora]
36      - name: Rootcanal
37        run: nohup python -m rootcanal > rootcanal.log &
38      - name: Test
39        run: |
40          avatar --list | grep -Ev '^=' > test-names.txt
41          timeout 5m avatar --test-beds bumble.bumbles --tests $(split test-names.txt -n l/${{ matrix.shard }})
42      - name: Rootcanal Logs
43        if: always()
44        run: cat rootcanal.log
45      - name: Upload Mobly logs
46        if: always()
47        uses: actions/upload-artifact@v3
48        with:
49          name: mobly-logs
50          path: /tmp/logs/mobly/bumble.bumbles/
51