summaryrefslogtreecommitdiff
path: root/.github/workflows/api.yml
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-07-17 11:22:44 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:07 +0200
commit2d625732ed0d74f4291370bddc96df27219b78e6 (patch)
tree721dba6311a1d8bc9b9bc9cc4d1eadcc74619d5b /.github/workflows/api.yml
parent4fa2e0dd8e2148c715b2ce691ea471d5af9a9cdb (diff)
Fix conditional Github Actions trigger
This change fixes the conditional Github Actions trigger that we use to only trigger CI invocations for the changed subprojects. Previously, Github Actions was only triggered when a file in the top-level directory of the subproject was changed.
Diffstat (limited to '.github/workflows/api.yml')
-rw-r--r--.github/workflows/api.yml54
1 files changed, 27 insertions, 27 deletions
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
index 7335c737..ae67b753 100644
--- a/.github/workflows/api.yml
+++ b/.github/workflows/api.yml
@@ -1,34 +1,34 @@
name: REST API
on:
- push:
- paths:
- - 'api/*'
+ push:
+ paths:
+ - 'api/**'
defaults:
- run:
- working-directory: api
+ run:
+ working-directory: api
jobs:
- build:
- 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: ${{ 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
+ build:
+ 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: ${{ 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