From 832196e77e9767fc5356a860b1a642e9ab27fceb Mon Sep 17 00:00:00 2001 From: Firq Date: Wed, 20 Dec 2023 17:25:33 +0100 Subject: [PATCH] added working_directory directive --- .forgejo/workflows/ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 4e3c869..6d68d85 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -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