Spaces:
Sleeping
Sleeping
molokhovdmitry
commited on
Commit
•
d51b260
1
Parent(s):
1997ce4
Change workflow for linting
Browse files
.github/workflows/{python-app.yml → lint.yml}
RENAMED
@@ -1,7 +1,7 @@
|
|
1 |
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
2 |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
3 |
|
4 |
-
name:
|
5 |
|
6 |
on:
|
7 |
push:
|
@@ -26,10 +26,7 @@ jobs:
|
|
26 |
- name: Install dependencies
|
27 |
run: |
|
28 |
python -m pip install --upgrade pip
|
29 |
-
pip install flake8
|
30 |
-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
31 |
-
# create .env file with an API Key
|
32 |
-
echo "YT_API_KEY=${{ secrets.YT_API_KEY }}" > .env
|
33 |
- name: Lint with flake8
|
34 |
run: |
|
35 |
# stop the build if there are Python syntax errors or undefined names
|
|
|
1 |
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
2 |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
3 |
|
4 |
+
name: Lint workflow
|
5 |
|
6 |
on:
|
7 |
push:
|
|
|
26 |
- name: Install dependencies
|
27 |
run: |
|
28 |
python -m pip install --upgrade pip
|
29 |
+
pip install flake8
|
|
|
|
|
|
|
30 |
- name: Lint with flake8
|
31 |
run: |
|
32 |
# stop the build if there are Python syntax errors or undefined names
|