Spaces:
Sleeping
Sleeping
Download .github/workflows/ci.yml from Ducdata1808/AGV_simulator: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/spaces/Ducdata1808/AGV_simulator/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/Ducdata1808/AGV_simulator/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/Ducdata1808/AGV_simulator/resolve/main/.github/workflows/ci.yml
824 Bytes
| name: VDA5050 Simulator CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run Tests | |
| run: | | |
| python -m unittest discover -s tests -p "test_*.py" | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Build Docker Image (Dry Run) | |
| run: | | |
| docker build -t vda5050-robot-simulator:test . | |