Skip to content

Commit

Permalink
fixing workflows 8
Browse files Browse the repository at this point in the history
  • Loading branch information
DraKen0009 committed Dec 6, 2024
1 parent 1813d20 commit 564ee30
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/test-plugin-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,30 @@ jobs:
- name: Checkout DraKen0009/care repository
uses: actions/checkout@v3
with:
repository: DraKen0009/care
ref: adding-camera-plugin
repository: ohcnetwork/care

# Update the plug_config.py file with the required content
- name: Update plug_config.py
run: |
branch_name=$(echo "$GITHUB_REF_NAME")
echo "from plugs.manager import PlugManager
from plugs.plug import Plug

camera_plugin = Plug(
name=\"camera\",
package_name=\"git+https://github.com/ohcnetwork/care_camera_asset.git\",
version=\"@$branch_name\",
configs={},
)

plugs = [camera_plugin]

manager = PlugManager(plugs)" > ./plug_config.py

# Build and start Docker containers
- name: Build and start Docker containers
run: |
make up
# Install plugins inside the backend container
- name: Run install_plugins.py
run: |
docker compose exec backend bash -c "python install_plugins.py"
# Run tests using `make test`
# - name: Run `make test`
# run: make test
make up
# Run Django management command tests
- name: Run Django management command tests
Expand Down

0 comments on commit 564ee30

Please sign in to comment.