From 4f6054a611198858a944e61602a0fbcf10ebf380 Mon Sep 17 00:00:00 2001 From: harishmohanraj Date: Wed, 11 Oct 2023 00:19:31 +0000 Subject: [PATCH] Add CI action file to test the faststream examples --- .../workflows/test-faststream-examples.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test-faststream-examples.yaml diff --git a/.github/workflows/test-faststream-examples.yaml b/.github/workflows/test-faststream-examples.yaml new file mode 100644 index 0000000..b09e655 --- /dev/null +++ b/.github/workflows/test-faststream-examples.yaml @@ -0,0 +1,22 @@ +name: Test faststream gen examples +on: [workflow_dispatch, pull_request, push] + + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Install Dependencies and library + shell: bash + run: | + set -ux + python -m pip install --upgrade pip + pip install -e ".[dev]" + - name: Run pytest + shell: bash + run: pytest +