forked from conductor-oss/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 917 Bytes
/
Copy pathpull_request.yml
File metadata and controls
26 lines (24 loc) · 917 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
name: Tests
on: pull_request
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: Instal package from local files
run: python3 -m pip install .
env:
CONDUCTOR_PYTHON_VERSION: v1.0.0
- name: Run Unit Tests
run: python3 -m unittest discover --verbose --start-directory=./tests/unit
- name: Run Integration Tests
run: python3 ./tests/main.py
env:
PYTHON_INTEGRATION_TESTS_SERVER_API_URL: ${{ secrets.PYTHON_INTEGRATION_TESTS_SERVER_API_URL }}
PYTHON_INTEGRATION_TESTS_SERVER_KEY_ID: ${{ secrets.PYTHON_INTEGRATION_TESTS_SERVER_KEY_ID }}
PYTHON_INTEGRATION_TESTS_SERVER_KEY_SECRET: ${{ secrets.PYTHON_INTEGRATION_TESTS_SERVER_KEY_SECRET }}