Skip to content
Merged
Show file tree
Hide file tree
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
98 changes: 0 additions & 98 deletions .github/actions/setup-python-cached/action.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ignore:
- "tests/**"
- "experiments/**"
- "**/__pycache__"
- "**/*.pyc"
- "setup.py"
- "scripts/generate_ssh_config.py"
- "scripts/test_ssh_device_ci.py"

coverage:
status:
project:
default:
target: auto
threshold: 1%
patch:
default:
target: 80%
threshold: 5%
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
open-pull-requests-limit: 10
2 changes: 1 addition & 1 deletion .github/workflows/ci-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
with:
os: ${{ inputs.os }}
device_serial: ${{ inputs.device_serial }}
secrets: inherit
secrets: inherit
14 changes: 11 additions & 3 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python with cached dependencies
uses: ./.github/actions/setup-python-cached
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Build package
run: python -m build
Expand All @@ -24,4 +32,4 @@ jobs:
with:
name: dist-${{ inputs.os }}
path: dist/
retention-days: 7
retention-days: 7
26 changes: 21 additions & 5 deletions .github/workflows/stage-device-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python with cached dependencies
uses: ./.github/actions/setup-python-cached
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Set up SSH server
run: |
Expand Down Expand Up @@ -57,8 +65,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python with cached dependencies
uses: ./.github/actions/setup-python-cached
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Check ADB devices
run: adb devices
Expand All @@ -77,4 +93,4 @@ jobs:
with:
name: benchmark-results-adb-${{ inputs.os }}
path: experiments/results/
retention-days: 30
retention-days: 30
29 changes: 17 additions & 12 deletions .github/workflows/stage-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,19 @@ jobs:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Setup Python with cached dependencies
uses: ./.github/actions/setup-python-cached
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Run Black
run: black --check ovmobilebench tests
Expand All @@ -28,14 +38,9 @@ jobs:
- name: Run tests
run: pytest tests/ -v --cov=ovmobilebench --cov=scripts --cov-report=xml --cov-report=term-missing

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.4.3
with:
files: ./coverage.xml
flags: unittests
name: codecov-${{ inputs.os }}
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

14 changes: 11 additions & 3 deletions .github/workflows/stage-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Python with cached dependencies
uses: ./.github/actions/setup-python-cached
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install -e .

- name: Validate example config
run: |
Expand All @@ -32,4 +40,4 @@ jobs:
ovmobilebench all --help
ovmobilebench package --help
ovmobilebench deploy --help
ovmobilebench report --help
ovmobilebench report --help
41 changes: 0 additions & 41 deletions codecov.yml

This file was deleted.

Loading