generated from pollen-robotics/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement #46: set up environement for unit tests
- Loading branch information
1 parent
9d63afa
commit dc4445c
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Pytest | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
tests: | ||
|
||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Install Gstreamer | ||
run: sudo apt-get -y install libssl-dev git python3-pip pkg-config libcairo2-dev gcc python3-dev libgirepository1.0-dev python3-gst-1.0 gir1.2-gst-plugins-bad-1.0 gstreamer1.0-plugins-bad gstreamer1.0 | ||
|
||
- name : Install Rust | ||
uses: hecrj/setup-rust-action@v2 | ||
|
||
- name: Clone gst-plugins-rs | ||
run: | | ||
git clone -b 0.12.8 --depth 1 https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git | ||
cd gst-plugins-rs/net/webrtc/signalling/ | ||
cargo build | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
cache: 'pip' # caching pip dependencies | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . |