diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 38 | ||||
| -rw-r--r-- | .github/workflows/publish.yml | 9 |
2 files changed, 2 insertions, 45 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index becbbbed..83b6911a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,44 +56,6 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: ./build/reports/jacoco/report.xml - flags: simulator - build-api: - name: Build API (Python ${{ matrix.python }}) - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - python: [3.9] - defaults: - run: - working-directory: opendc-web/opendc-web-api - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Lint with pylint - run: ./check.sh - - name: Test with pytest - run: pytest --cov --cov-report=xml --junitxml=junit-report.xml - - name: Publish report - if: always() - uses: mikepenz/action-junit-report@v3.0.1 - with: - check_name: test (Python ${{ matrix.python }}) - report_paths: '**/junit-report.xml' - github_token: ${{ secrets.GITHUB_TOKEN }} - - name: Upload code coverage - uses: codecov/codecov-action@v2 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: opendc-web/opendc-web-api/coverage.xml - flags: api build-ui: name: Build UI (Node ${{ matrix.node }}) runs-on: ${{ matrix.os }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 479b94f2..4e386603 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,8 +9,6 @@ jobs: name: Push Simulator runs-on: ubuntu-latest steps: - - name: Check out the repo - uses: actions/checkout@v3 - name: Prepare id: prep run: | @@ -30,14 +28,13 @@ jobs: uses: docker/build-push-action@v2 with: push: true + file: opendc-web/opendc-web-runner/Dockerfile repository: atlargeresearch/opendc tags: ${{ steps.prep.outputs.tags }} push-api: name: Push API runs-on: ubuntu-latest steps: - - name: Check out the repo - uses: actions/checkout@v3 - name: Prepare id: prep run: | @@ -57,15 +54,13 @@ jobs: uses: docker/build-push-action@v2 with: push: true - context: opendc-web/opendc-web-api + file: opendc-web/opendc-web-api/Dockerfile repository: atlargeresearch/opendc-web-api tags: ${{ steps.prep.outputs.tags }} push-ui: name: Push UI runs-on: ubuntu-latest steps: - - name: Check out the repo - uses: actions/checkout@v3 - name: Prepare id: prep run: | |
