added working_directory directive
This commit is contained in:
parent
a74095eaea
commit
832196e77e
1 changed files with 4 additions and 7 deletions
|
@ -8,17 +8,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Switch to correct directory
|
|
||||||
run: |
|
|
||||||
cd backend
|
|
||||||
ls
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
|
working-directory: ./backend
|
||||||
run: |
|
run: |
|
||||||
ls
|
|
||||||
pip install -e . -q
|
pip install -e . -q
|
||||||
python -m pip list --format=columns --disable-pip-version-check
|
python -m pip list --format=columns --disable-pip-version-check
|
||||||
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
pip install pylint~=2.17.7 --disable-pip-version-check -q
|
||||||
- name: Run pylint
|
- name: Run pylint
|
||||||
|
working-directory: ./backend
|
||||||
run: |
|
run: |
|
||||||
pylint --version
|
pylint --version
|
||||||
pylint **/*.py --exit-zero
|
pylint **/*.py --exit-zero
|
||||||
|
@ -30,11 +27,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: https://code.forgejo.org/actions/checkout@v3
|
uses: https://code.forgejo.org/actions/checkout@v3
|
||||||
- name: Switch to correct directory
|
|
||||||
run: cd backend
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
|
working-directory: ./backend
|
||||||
run: pip install build
|
run: pip install build
|
||||||
- name: Build package
|
- name: Build package
|
||||||
|
working-directory: ./backend
|
||||||
run: |
|
run: |
|
||||||
python -m build
|
python -m build
|
||||||
cp dist ../dist -r
|
cp dist ../dist -r
|
||||||
|
|
Loading…
Reference in a new issue