working directory

This commit is contained in:
nessar committed 2023-03-18 02:01:42 +01:00
1 parent b7cba98157
commit d7e6404feb
1 file changed
+3 -3
+3 -3
View File
@@ -23,19 +23,19 @@ jobs:
with:
python-version: "3.10"
- name: Install dependencies
working-directory: ${{github.workspace}}/python
run: |
cd python
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
working-directory: ${{github.workspace}}/python
run: |
cd python
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
working-directory: ${{github.workspace}}/python
run: |
cd python
pytest