8000 Run tests on GitHub Actions by MarshalX · Pull Request #187 · MarshalX/python-webrtc · GitHub
[go: up one dir, main page]

Skip to content

Run tests on GitHub Actions #187

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

Merged
merged 6 commits into from
Aug 14, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: Checkout repository.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_macos_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build_wheels_for_macos:
name: Build and publish wheels for macOS
runs-on: macos-latest
runs-on: macos-12

strategy:
matrix:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and run tests

on:
push:
branches:
- ci-pytest
pull_request:
branches:
- main

jobs:
build_and_test:
strategy:
matrix:
os: [ ubuntu-20.04, macos-12, windows-2019 ]

runs-on: ${{matrix.os}}
continue-on-error: true

steps:
- name: Checkout repository.
uses: actions/checkout@v2
with:
submodules: recursive

- name: Move repository to disk C.
if: matrix.os == 'windows-2019'
run: xcopy . C:\src\ /E/H

- name: Setup Python.
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Build and install package.
if: matrix.os == 'ubuntu-20.04'
run: |
python setup.py install
sudo apt install -y python3.9-dev

- name: Build and install package.
if: matrix.os == 'macos-12'
run: python setup.py install

- name: Build and install package.
if: matrix.os == 'windows-2019'
working-directory: "C:/src"
run: python setup.py install

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

- name: Run tests.
run: pytest tests -vv
0