Skip to content

Commit

Permalink
ci: upload test artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
uael committed Oct 16, 2023
1 parent 083da7d commit 2ba4e88
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/avatar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ jobs:
pip install --upgrade pip
pip install rootcanal==1.3.0
pip install .
mkdir -p out
- name: Rootcanal
run: nohup python -m rootcanal > rootcanal.log &
run: nohup python -m rootcanal > out/rootcanal.log &
- name: Test
run: |
avatar --list | grep -Ev '^=' > test-names.txt
timeout 5m avatar --test-beds bumble.bumbles --tests $(split test-names.txt -n l/${{ matrix.shard }})
- name: Rootcanal Logs
run: cat rootcanal.log
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: Artifacts [${{ matrix.shard }}]
path: out/
3 changes: 3 additions & 0 deletions avatar/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def run(self) -> bool:
# Enable Bumble snoop logs.
os.environ.setdefault('BUMBLE_SNOOPER', f'btsnoop:file:{self.logs_dir}/{_BUMBLE_BTSNOOP_FMT}')

# Set Mobly log path.
os.environ.setdefault('ENV_MOBLY_LOGPATH', str(self.logs_dir))

# Execute the suite
ok = True
for config in self.test_run_configs:
Expand Down

0 comments on commit 2ba4e88

Please sign in to comment.