Skip to content

Commit

Permalink
Add test to regularly validate package on pip (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb committed Jul 5, 2023
1 parent 4c08253 commit 6a49e83
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/install-adb-enhanced-from-pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Install adb-enhanced via pip

on:
schedule:
- cron: '0 0 * * 0' # Sunday midnight UTC
push:
branches: [master, main]
paths:
- '.github/workflows/install-adb-enhanced-from-pip.yml'
pull_request:
branches: [master, main]
paths:
- '.github/workflows/install-adb-enhanced-from-pip.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
installAdbe:
runs-on: macos-latest
timeout-minutes: 15
strategy:
matrix:
# A dependency, psutil, fails to install on Python 3.9
# https://github.com/ashishb/adb-enhanced/actions/runs/4309805993/jobs/7517607875
python-version: ["3.8", "3.11"]
steps:
- name: checkout
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install adb-enhanced from pip
run: |
sudo pip install adb-enhanced
adbe --version
sudo pip uninstall -y adb-enhanced
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ A command-line interface to trigger various scenarios like screen rotation, batt

[![AdbeInstallTests](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-installtests.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-installtests.yml) [![AdbeUnitTests](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests.yml)

[![Install adb-enhanced via pip](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/install-adb-enhanced-from-pip.yml)

[![AdbeUnitTests-Api16](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api16.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api16.yml)
[![AdbeUnitTests-Api21](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api21.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api21.yml)
[![AdbeUnitTests-Api22](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api22.yml/badge.svg)](https://github.com/ashishb/adb-enhanced/actions/workflows/adbe-unittests-api22.yml)
Expand Down

0 comments on commit 6a49e83

Please sign in to comment.