Skip to content

Commit

Permalink
concurrecny
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero committed Nov 8, 2024
1 parent 6de90a9 commit 0329191
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/auto-format.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: auto-format
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
# Check if the PR is not from a fork
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-dockerhub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
release:
types: [published]

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

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [ main ]
pull_request:

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

jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion test/test_arg_parsing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from stream import parse_motion_args, parse_resize_args, parse_stream_args
from stream.stream import parse_motion_args, parse_resize_args, parse_stream_args


def test_parse_resize_args():
Expand Down
2 changes: 1 addition & 1 deletion test/test_image_processing.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pytest

from image_processing import crop_frame, parse_crop_string, resize_if_needed
from stream.image_processing import crop_frame, parse_crop_string, resize_if_needed


def test_resize_if_needed():
Expand Down
2 changes: 1 addition & 1 deletion test/test_image_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from framegrab import MotionDetector
from groundlight import Groundlight

from stream import process_single_frame, run_capture_loop
from stream.stream import process_single_frame, run_capture_loop
from test.utils import thread_logging


Expand Down
2 changes: 1 addition & 1 deletion test/test_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from unittest.mock import Mock

from threads import ThreadControl, setup_workers, worker_loop
from stream.threads import ThreadControl, setup_workers, worker_loop


def test_thread_control():
Expand Down

0 comments on commit 0329191

Please sign in to comment.