From db893e0cd352d0b28a334a6a4da073fc64bc56bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 18 Nov 2023 10:46:29 +0100 Subject: [PATCH] CI: fix incorrect syntax --- {.gitea => .github}/workflows/build-docker.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) rename {.gitea => .github}/workflows/build-docker.yml (65%) diff --git a/.gitea/workflows/build-docker.yml b/.github/workflows/build-docker.yml similarity index 65% rename from .gitea/workflows/build-docker.yml rename to .github/workflows/build-docker.yml index 7b7235d..f118211 100644 --- a/.gitea/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -6,14 +6,20 @@ on: jobs: test: - runs-on: python:3.12 + runs-on: ubuntu-latest + container: python:3.12 steps: - - python -m pip install poetry - - poetry install - - poetry env info - - poetry run python manage.py migrate - - poetry run pytest + - name: Checkout + uses: actions/checkout@v4 + - name: Run test + run: | + python -m pip install poetry + poetry install + poetry env info + poetry run python manage.py migrate + poetry run pytest build-and-push: + needs: test runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' steps: