diff options
Diffstat (limited to '.github/workflows/api.yml')
| -rw-r--r-- | .github/workflows/api.yml | 54 |
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 |
