Skip to content

Staging package test #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 14 additions & 1 deletion .github/workflows/reviewing_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
commit_sha:
description: 'The full commit id to build'
required: true
package_url:
description: 'Staging package url'
required: false

jobs:
comment-run:
Expand All @@ -17,12 +20,13 @@ jobs:
fail-fast: false
max-parallel: 3
matrix:
python: ['3.7', '3.10', '3.11']
python: ['3.9.6']
os: [ macos-latest, windows-latest, ubuntu-latest ]
name: Pytest Repo ${{ matrix.python }} - ${{ matrix.os }} Sample
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
PACKAGE_URL: ${{ github.event.inputs.package_url }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -54,6 +58,15 @@ jobs:

- name: Install dependencies
run: python -m pip install -r requirements.txt

- name: Install staging browserstack-sdk package
if: ${{ github.event.inputs.package_url != '' }}
run: |
echo 'Installing staging tar.gz'
curl -o staging_package.tgz "$PACKAGE_URL"
python -m pip uninstall browserstack-sdk -y
python -m pip install staging_package.tgz
shell: bash

- name: run tests in parallel
run: browserstack-sdk pytest -s tests/bstack-sample-test.py
Expand Down