-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (38 loc) · 964 Bytes
/
Copy pathpython_test.yaml
File metadata and controls
43 lines (38 loc) · 964 Bytes
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
name: Test changes on Python package
on:
pull_request:
paths:
- "Actions/python-package/**"
- ".github/workflows/python_test.yaml"
types:
- opened
- synchronize
- reopened
jobs:
Test:
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
working-directory: ./Actions/python-package
- name: Run tests
run: |
pytest tests/klarity_connector_tests.py
working-directory: ./Actions/python-package