Skip to content

fixing workflows 8

fixing workflows 8 #9

name: Run Tests with Docker
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
# Checkout the DraKen0009/care repository
- name: Checkout DraKen0009/care repository
uses: actions/checkout@v3
with:
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

Check failure on line 25 in .github/workflows/test-plugin-integration.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-plugin-integration.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
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
# Run Django management command tests
- name: Run Django management command tests
run: |
docker compose exec backend bash -c "python manage.py test camera --keepdb --parallel --shuffle"