From 8d5a65124378ee980d90ba6fbdb51a43309879d4 Mon Sep 17 00:00:00 2001 From: ldeluigi <44567586+ldeluigi@users.noreply.github.com> Date: Fri, 23 Aug 2024 12:03:46 +0200 Subject: [PATCH] Fix ci missing python client publication --- .dockerignore | 4 ++++ .github/workflows/ci.yml | 10 ++++++++++ common/.dockerignore | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) delete mode 100644 common/.dockerignore diff --git a/.dockerignore b/.dockerignore index 01a3a119..fd4d0143 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,8 @@ **/*.git **/*.env **/*.sqlite3 +**/.gitignore +**/.dockerignore **/*docker-*.yml **/Dockerfile **/Dockerfile.* @@ -17,3 +19,5 @@ demo/ .vscode/ backend/.kubernetes/ backend/backend/debug_settings.py +client/*/tests +client/*/pytest.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 145d8492..ce88055a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -385,6 +385,11 @@ jobs: - name: Run python tests ๐Ÿงช run: python backend/manage.py test client/python/tests/ --no-input --parallel auto working-directory: . + - name: Upload client artifact ๐Ÿ“ฆ + uses: actions/upload-artifact@v4 + with: + name: spellbook-client-python + path: client/python/spellbook_client bot-discord: runs-on: ubuntu-latest @@ -398,6 +403,11 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Checkout ๐Ÿ›Ž๏ธ uses: actions/checkout@v4 + - name: Download client artifact โฌ‡ + uses: actions/download-artifact@v4 + with: + name: spellbook-client-python + path: client/python/spellbook_client - name: Build and export image ๐Ÿ—๏ธ uses: docker/build-push-action@v6 with: diff --git a/common/.dockerignore b/common/.dockerignore deleted file mode 100644 index c18dd8d8..00000000 --- a/common/.dockerignore +++ /dev/null @@ -1 +0,0 @@ -__pycache__/