added working_directory directive
All checks were successful
/ backend-pylint (push) Successful in 26s
/ build:package (push) Successful in 12s

This commit is contained in:
Firq 2023-12-20 17:25:33 +01:00
parent a74095eaea
commit 832196e77e
Signed by: Firq
GPG key ID: 4DE1059A4666E89F

View file

@ -8,17 +8,14 @@ jobs:
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Switch to correct directory
run: |
cd backend
ls
- name: Install packages
working-directory: ./backend
run: |
ls
pip install -e . -q
python -m pip list --format=columns --disable-pip-version-check
pip install pylint~=2.17.7 --disable-pip-version-check -q
- name: Run pylint
working-directory: ./backend
run: |
pylint --version
pylint **/*.py --exit-zero
@ -30,11 +27,11 @@ jobs:
steps:
- name: Checkout source code
uses: https://code.forgejo.org/actions/checkout@v3
- name: Switch to correct directory
run: cd backend
- name: Install packages
working-directory: ./backend
run: pip install build
- name: Build package
working-directory: ./backend
run: |
python -m build
cp dist ../dist -r