-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (31 loc) · 845 Bytes
/
Copy pathrun-pytests.yml
File metadata and controls
35 lines (31 loc) · 845 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
name: "CI: Pytest"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
py-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -c "import sys; print(f'Running test with py version: {sys.version}')"
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run pytests
run: |
poetry run python -m pytest tests/* --cov --cov-config=tests/.coveragerc --junitxml=py_springcloud_junit_report.xml