diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index caad1b6..95794cf 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -9,29 +9,34 @@ jobs: - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - - name: Checkout + + - name: Checkout uses: actions/checkout@v4 - - - name: Set up Docker Buildx + + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry + + - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push + + - name: Build and push uses: docker/build-push-action@v3 with: context: . - - - name: Run tests + + - name: Install package and dependencies + run: | + python -m pip install --upgrade pip wheel + python -m pip install . + + - name: Run tests run: python -m unittest discover - - - name: Build and push + + - name: Build and push uses: docker/build-push-action@v3 with: context: . diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 31a3a55..0893cb2 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -37,6 +37,7 @@ jobs: deploy: needs: [unittests] runs-on: ubuntu-latest + steps: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3