ktmud commented on a change in pull request #9517: [Build] Add Github workflows
URL:
https://github.com/apache/incubator-superset/pull/9517#discussion_r407722511
##########
File path: .github/workflows/superset-backend.yml
##########
@@ -0,0 +1,151 @@
+name: Backend
+
+on:
+ # only build on direct push to `master` branch
+ push:
+ branches: [ master ]
+ paths:
+ - superset/**/*.py
+ - tests/**
+ - setup.py
+ - requirements*.txt
+ # but also build on pull requests to any branch
+ # (the so-called feature branch)
+ pull_request:
+ paths:
+ - superset/**/*.py
+ - tests/**
+ - setup.py
+ - requirements*.txt
+
+jobs:
+ python-lint:
+ runs-on: ubuntu-18.04
+ strategy:
+ matrix:
+ python-version: [3.6]
+ env:
+ PYTHON_LINT_TARGET: setup.py superset tests
+ CI: github-actions
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Cache mypy
+ uses: actions/cache@v1
+ with:
+ path: .mypy_cache
+ key: ${{ runner.os }}-mypy-${{ hashFiles('./requirements*.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-mypy-
+ - name: Setup Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ uses: ktmud/cached-dependencies@v1
Review comment:
Just spend an hour refactor an got this:
```
### ERRORED 21:06:58Z
- Your workflow file was invalid: The workflow is not valid.
.github/workflows/superset-python.yml: Anchors are not currently supported.
Remove the anchor 'python-job'
```
😞 Bummer!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]