Skip to content

Commit

Permalink
add docker/pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieugouel authored Nov 18, 2023
1 parent 6bbff14 commit 6e94b74
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,23 @@ jobs:
run: poetry run pytest --cov=metatrace --cov-report=xml --log-cli-level=INFO
- uses: codecov/codecov-action@v3

# Uncomment when public
# docker:
# needs: [test]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dioptra-io/publish-docker-action@v1
# with:
# password: ${{ secrets.GITHUB_TOKEN }}
# platforms: linux/amd64,linux/arm64
# push: ${{ github.actor != 'dependabot[bot]' }}
docker:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dioptra-io/publish-docker-action@v1
with:
password: ${{ secrets.GITHUB_TOKEN }}
platforms: linux/amd64,linux/arm64
push: ${{ github.actor != 'dependabot[bot]' }}

# Set PYPI_PASSWORD and uncomment when public
# pypi:
# needs: [test]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dioptra-io/publish-python-action@v1
# with:
# password: ${{ secrets.PYPI_PASSWORD }}
# upload: ${{ startsWith(github.ref, 'refs/tags/v') }}
pypi:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dioptra-io/publish-python-action@v1
with:
password: ${{ secrets.PYPI_PASSWORD }}
upload: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 comments on commit 6e94b74

Please sign in to comment.