Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Jul 24, 2024
1 parent 4321da4 commit 1732f30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 70 deletions.
62 changes: 0 additions & 62 deletions .github/workflows/test.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ env:
jobs:
unittests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand All @@ -41,14 +40,16 @@ jobs:
run: python -m unittest discover

deploy:
if: github.ref_type == 'tag'
needs: [unittests]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
runs-on: ubuntu-latest

steps:
- name: Checkout
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Docker Buildx
Expand All @@ -71,15 +72,14 @@ jobs:
id: build-and-push
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
context: .
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ${{ steps.meta.outputs.tags }}

- name: Sign the published Docker image
if: ${{ github.ref_type == 'tag' }}
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
Expand Down

0 comments on commit 1732f30

Please sign in to comment.