-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (39 loc) · 1.26 KB
/
integration_tests.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Integration Tests
on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: [3.8, 3.9, '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache Poetry virtualenv
uses: actions/cache@v2
with:
path: ~/.local/share/poetry/virtualenvs/ # Cache Poetry virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('pyproject.toml') }} # Cache key based on project dependencies
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2 # Specify your desired Poetry version (pin it for stability)
virtualenvs-create: true
virtualenvs-in-project: true # Create venv within project directory
- name: Install dependencies
run: poetry install
- name: Run tests with pytest
run: poetry run pytest --cov=fedot_ind -s tests/integration
- name: Codecov-coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests