From 3d6c8fb2c993b39f110e01a642c0a0ac348635b5 Mon Sep 17 00:00:00 2001 From: Valentin Zickner Date: Fri, 20 Sep 2024 16:00:00 +0200 Subject: [PATCH] replace cd with working-directory property --- .github/workflows/main.yml | 9 +++++---- .github/workflows/release.yml | 4 +++- .github/workflows/test-release.yml | 4 +++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae06cee..373a7cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: External Worker Build and Test +name: Flowable External Client Build and Test on: [push, pull_request] @@ -41,8 +41,9 @@ jobs: - run: pip install virtualenv - run: virtualenv venv - run: source venv/bin/activate - - run: python external-worker/setup.py install - - run: cd robocorp/ - run: pip install setuptools + - run: python external-worker/setup.py install - run: pip install -e ".[testing]" - - run: python -m unittest discover \ No newline at end of file + working-directory: robocorp/ + - run: python -m unittest discover + working-directory: robocorp/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a50a0c8..4af895b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,11 +21,13 @@ jobs: - run: virtualenv venv - run: source venv/bin/activate - run: pip install setuptools - - run: cd external-worker/ - run: python setup.py sdist + working-directory: external-worker/ - run: pip wheel --no-deps . -w dist + working-directory: external-worker/ - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + working-directory: external-worker/ with: packages-dir: external-worker/dist/ verbose: true diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 6436dc3..3a5dffe 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -23,11 +23,13 @@ jobs: - run: virtualenv venv - run: source venv/bin/activate - run: pip install setuptools - - run: cd external-worker/ - run: python setup.py sdist + working-directory: external-worker/ - run: pip wheel --no-deps . -w dist + working-directory: external-worker/ - name: Publish package distributions to Test PyPI uses: pypa/gh-action-pypi-publish@release/v1 + working-directory: external-worker/ with: repository-url: https://test.pypi.org/legacy/ packages-dir: external-worker/dist/