diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-11-03 19:51:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-03 19:51:37 +0100 |
| commit | f3f8d1d494a08a032940c6587c7865cd0ac0dd7a (patch) | |
| tree | f929c999e0919af1325c86d7147b6b948b2bdf24 /.github/workflows/build-api.yml | |
| parent | fe717acf3136400a8048b5e2aabbc99414c790c1 (diff) | |
| parent | e706cb9ef3e0c8b55746c24808ae90034bfacdd0 (diff) | |
Merge pull request #61 from atlarge-research/ci/limit
Improve CI pipelines
Diffstat (limited to '.github/workflows/build-api.yml')
| -rw-r--r-- | .github/workflows/build-api.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml new file mode 100644 index 00000000..5bbc30c4 --- /dev/null +++ b/.github/workflows/build-api.yml @@ -0,0 +1,36 @@ +name: Build API + +on: + push: + paths: + - 'api/**' + pull_request: + branches: [master] + +defaults: + 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 |
