From 28a363663d2c93a1a6040ebed271a11cff703b2b Mon Sep 17 00:00:00 2001 From: Untone Date: Mon, 5 Feb 2024 15:31:43 +0300 Subject: [PATCH] ci-fix --- .gitea/workflows/main.yml | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index c88393d..5832d19 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -2,8 +2,30 @@ name: 'deploy' on: [push] jobs: + test: + runs-on: ubuntu-latest + steps: + + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.12 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install poetry + poetry install + + - name: Run tests + run: poetry run pytest + deploy: runs-on: ubuntu-latest + needs: test steps: - name: Cloning repo uses: actions/checkout@v2 @@ -18,5 +40,5 @@ jobs: uses: dokku/github-action@master with: branch: 'main' - git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}' - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file + git_remote_url: 'ssh://dokku@v2.discours.io:22/${{ steps.repo_name.outputs.repo }}' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}