-
Notifications
You must be signed in to change notification settings - Fork 87
43 lines (39 loc) · 1.28 KB
/
integration-tests-python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Integration tests for Python
on:
workflow_dispatch:
inputs:
web_pubsub_connection_string:
description: 'Azure Web PubSub Connection String'
required: true
type: string
push:
branches: [ "main" ]
paths:
- 'tests/integration-tests/python/**'
pull_request:
branches: [ "main" ]
paths:
- 'tests/integration-tests/python/**'
jobs:
test:
runs-on: ubuntu-latest
env:
WEB_PUBSUB_CONNECTION_STRING: ${{ github.event.inputs.web_pubsub_connection_string || secrets.WEB_PUBSUB_CONNECTION_STRING }}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Run tests
run: |
cd tests/integration-tests/python
python -m pip install --upgrade pip
pip install -r requirements.txt
pytest