Separating jobs per-project #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test transcoder | |
on: | |
push: | |
paths: | |
- .github/workflows/transcoder.yaml | |
- deps | |
- transcoder | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install flake8 | |
working-directory: transcoder | |
run: pip3 install -e '.[flake8]' | |
- name: Run flake8 | |
working-directory: transcoder | |
run: | | |
FAIL_SRC=0 | |
flake8 src || FAIL_SRC=$? |