test runner - fix
Some checks failed
Build and Deploy Flask App / setup (push) Successful in 2s
Build and Deploy Flask App / test (push) Failing after 55s
Build and Deploy Flask App / build-and-push (push) Has been skipped
Build and Deploy Flask App / deploy (push) Has been skipped

This commit is contained in:
Norvicdev 2026-08-04 21:15:31 +03:00
parent ad8ba72f71
commit 2d285d8b32

View file

@ -17,21 +17,27 @@ env:
DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }} DEPLOY_PORT: ${{ secrets.DEPLOY_PORT || '22' }}
jobs: jobs:
# ========== НОВАЯ ЗАДАЧА: просто проверяет, что код есть ==========
setup: setup:
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout code - name: Clone repository
uses: actions/checkout@v4 run: |
git config --global http.sslVerify false
git clone https://vicsergeev.ru/forgejo/Vic/DummyApp.git .
git checkout ${{ github.sha }}
ls -la
- name: Setup complete - name: Setup complete
run: echo "✅ Setup complete, starting pipeline..." run: echo "✅ Setup complete, starting pipeline..."
test: test:
needs: setup # ← теперь зависит от setup needs: setup
runs-on: docker runs-on: docker
steps: steps:
- name: Checkout code - name: Clone repository
uses: actions/checkout@v4 run: |
git config --global http.sslVerify false
git clone https://vicsergeev.ru/forgejo/Vic/DummyApp.git .
git checkout ${{ github.sha }}
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
@ -53,13 +59,16 @@ jobs:
run: echo "✅ Tests passed!" run: echo "✅ Tests passed!"
build-and-push: build-and-push:
needs: test # ← зависит от test needs: test
runs-on: docker runs-on: docker
if: github.event_name == 'push' if: github.event_name == 'push'
steps: steps:
- name: Checkout code - name: Clone repository
uses: actions/checkout@v4 run: |
git config --global http.sslVerify false
git clone https://vicsergeev.ru/forgejo/Vic/DummyApp.git .
git checkout ${{ github.sha }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@ -93,13 +102,16 @@ jobs:
BUILD_TIME=${{ steps.vars.outputs.BUILD_TIME }} BUILD_TIME=${{ steps.vars.outputs.BUILD_TIME }}
deploy: deploy:
needs: build-and-push # ← зависит от build-and-push needs: build-and-push
runs-on: docker runs-on: docker
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- name: Checkout code - name: Clone repository
uses: actions/checkout@v4 run: |
git config --global http.sslVerify false
git clone https://vicsergeev.ru/forgejo/Vic/DummyApp.git .
git checkout ${{ github.sha }}
- name: Setup SSH - name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@v0.9.0