Skip to content

Commit

Permalink
add workflow for csle-rest-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Jul 12, 2024
1 parent 195d689 commit 8c5c78d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-csle-rest-api-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: python-csle-rest-api-build
run-name: ${{ github.actor }} python-csle-rest-api-build
on:
push:
branches:
- "master"
# pull_request:
# branches:
# - "master"

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install python build dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Tox tests csle-rest-api
run: cd simulation-system/libs/csle-rest-api; tox
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
files: simulation-system/libs/csle-rest-api/coverage.yml

0 comments on commit 8c5c78d

Please sign in to comment.