update: init commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Root System Manager Test | |
| on: push | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| - name: Install pytest | |
| working-directory: root_orchestrator/system-manager-python | |
| run: | | |
| pip install pytest coverage | |
| - name: Install dependencies | |
| working-directory: root_orchestrator/system-manager-python | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Build Docker images | |
| working-directory: root_orchestrator/resource-abstractor | |
| run: | | |
| docker build -t resource_abstractor:test . | |
| - name: Run containers | |
| working-directory: root_orchestrator/ | |
| run: | | |
| docker compose up resource_abstractor -d | |
| - name: Run test suite | |
| working-directory: root_orchestrator/system-manager-python | |
| run: | | |
| coverage run -m pytest | |
| - name: Generate report | |
| working-directory: root_orchestrator/system-manager-python | |
| run: | | |
| coverage html -d tests/coverage |