diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index a6d1b10..cf08b00 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -15,17 +15,17 @@ jobs: runs-on: docker steps: - uses: actions/checkout@v4 - + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' - + python-version: '3.10' + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - + - name: Run tests run: | pytest @@ -36,17 +36,17 @@ jobs: if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') steps: - uses: actions/checkout@v4 - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - + - name: Login to Forgejo Container Registry uses: docker/login-action@v2 with: registry: ${{ secrets.FORGEJO_REGISTRY }} username: ${{ secrets.FORGEJO_USERNAME }} password: ${{ secrets.FORGEJO_PASSWORD }} - + - name: Extract metadata for Docker id: meta uses: docker/metadata-action@v4 @@ -57,7 +57,7 @@ jobs: type=ref,event=pr type=semver,pattern={{version}} type=sha,format=short - + - name: Build and push Docker image uses: docker/build-push-action@v4 with: @@ -76,4 +76,4 @@ jobs: - name: Notify about build status run: | echo "Build completed with status: ${{ job.status }}" - # Add webhook notification or other notification methods if needed \ No newline at end of file + # Add webhook notification or other notification methods if needed