summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-03-22 11:09:52 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-04-04 12:51:38 +0200
commit239990cb16f13cb307a94abccdd688bec2865221 (patch)
tree4831c5f774c2422446e93e210df77edcfdc11657 /.github
parent3d1c02e50ee619598bcd7fad4368be8b4a039e84 (diff)
ci(web): Remove Python build steps from CI pipeline
This change removes the Python build steps from the CI pipeline. Previously, these steps were used to build the OpenDC API server that was written in Python. With the migration to a Kotlin-based API, we can unify the build steps in our pipeline.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml38
-rw-r--r--.github/workflows/publish.yml9
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: |