-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.15 KB
/
Copy pathtest-cloud-services.yml
File metadata and controls
49 lines (42 loc) · 1.15 KB
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
43
44
45
46
47
48
49
name: Test Cloud Services
on:
workflow_call:
inputs:
python_version:
description: 'Python version to use'
required: false
type: string
default: '3.11'
jobs:
test:
runs-on: ubuntu-latest
name: Test Cloud Services API
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
submodules: recursive
token: ${{ github.token }}
- name: Install Python dependencies
uses: ./.github/actions/install-python-requirements
with:
requirements_path: requirements.txt
working_directory: cloud-services
python_version: ${{ inputs.python_version }}
- name: Install test dependencies
shell: bash
working-directory: cloud-services
run: |
pip install pytest pytest-asyncio httpx
- name: Run API tests
shell: bash
working-directory: cloud-services
run: |
pytest tests/ -v --tb=short
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-results-cloud-services
path: cloud-services/junit/
if-no-files-found: ignore