Skip to content

Commit

Permalink
enhancement #46: fixing CI. wrong path
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienDanieau committed Aug 7, 2024
1 parent 7dcfefb commit 1a229ea
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,22 @@ jobs:
- name : Install Rust
uses: hecrj/setup-rust-action@v2

- name: Install Gst Signalling Server
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
- name: Checkout code
uses: actions/checkout@v4
with:
path : gst-signalling

- name: Checkout tools repo
uses: actions/checkout@v4
with:
repository: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
path: gst-plugins-rs
ref: 0.12.8

- name: Install Gst Signalling Server
run: |
cd $GITHUB_WORKSPACE/gst-plugins-rs/net/webrtc/signalling/
cargo build
- name: Set up Python 3.10
uses: actions/setup-python@v4
Expand All @@ -30,14 +38,15 @@ jobs:
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE/gst-signalling
python -m pip install --upgrade pip
pip install .[dev]
- name: Unit tests
uses: BerniWittmann/background-server-action@v1
with:
command: coverage run -m pytest, coverage xml, coverage json, coverage html
start: cd gst-plugins-rs/net/webrtc/signalling/, cargo run --bin gst-webrtc-signalling-server
start: cd $GITHUB_WORKSPACE/gst-plugins-rs/net/webrtc/signalling/, cargo run --bin gst-webrtc-signalling-server
wait-on: 'http://localhost:8443'

- name: Archive code coverage html report
Expand Down

0 comments on commit 1a229ea

Please sign in to comment.