Skip to content

Commit

Permalink
Add release workflow for taskiq-aio-sqs (#1)
Browse files Browse the repository at this point in the history
* Add release workflow for taskiq-aio-sqs

* fix condition on workflow

* change condition
  • Loading branch information
vonsteer authored Sep 16, 2024
1 parent 0beccb2 commit af40a59
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release taskiq-aio-sqs package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/taskiq-aio-sqs
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: make install
- name: Build dist
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Testing taskiq-aio-sqs

on: [push, pull_request]
on:
pull_request:
branches:
- main
- develop

jobs:
lint:
Expand Down Expand Up @@ -40,7 +44,7 @@ jobs:
- name: Run pytest check
run: make test py_version=${{ matrix.py_version }}
- name: Show Coverage
if: ${{ github.event_name == 'pull_request' and ${{ matrix.py_version }} == '3.10'}}
if: ${{ github.event_name == 'pull_request' && matrix.py_version == '3.10'}}
uses: orgoro/coverage@v3.2
with:
coverageFile: coverage.xml
Expand Down

0 comments on commit af40a59

Please sign in to comment.