diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-07 19:35:01 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:57 +0200 |
| commit | 5d2ddb814da1fc299792fde2e09a04f600b25dd7 (patch) | |
| tree | e203dce5ae4fbe79e306575db5afa3277182a042 /.github/workflows/web-server.yml | |
| parent | b71a7714639a5d828e914a65357bef6c471dfad0 (diff) | |
| parent | ec99201cce87da30f0ffdda57d78853001a34a64 (diff) | |
Merge pull request #6 from atlarge-research/chore/simulator-ci
Add Github Actions configuration for simulator
Diffstat (limited to '.github/workflows/web-server.yml')
| -rw-r--r-- | .github/workflows/web-server.yml | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/.github/workflows/web-server.yml b/.github/workflows/web-server.yml index af843266..6f14f97b 100644 --- a/.github/workflows/web-server.yml +++ b/.github/workflows/web-server.yml @@ -1,26 +1,34 @@ name: Web server -on: [push] +on: + push: + paths: + - 'web-server/*' + +defaults: + run: + working-directory: web-server jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python: [3.8] steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install dependencies - working-directory: web-server - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Lint with pylint - working-directory: web-server - run: | - ./check.sh - - name: Test with pytest - working-directory: web-server - run: | - pytest opendc + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + 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 opendc |
