-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.03 KB
/
automated_testing.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
name: Integrated Testing - No broken code!
on:
pull_request:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Installing requirements
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./Cloud/2-automation_principles/1_api_automations/3_countryinfo_travellers/requirements.txt
# Running the integration tests
- name: Running Integration Tests
run: |
pip install pytest pytest-cov
python -m pytest ./Cloud/2-automation_principles/1_api_automations/3_countryinfo_travellers/tests/shared_tests.py