Skip to content

Commit

Permalink
updated intergration test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
technocreep committed Apr 27, 2024
1 parent adec8db commit a9ecb8e
Showing 1 changed file with 33 additions and 18 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
name: Integration Tests
name: Unit Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
test:
runs-on: ubuntu-latest
timeout-minutes: 95
timeout-minutes: 30
strategy:
matrix:
python-version: [ 3.9 ]
python-version: [3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v2

- name: Checkout branch
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- 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: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
pip install pytest-cov
- name: Test with pytest
run: |
pytest --cov=fedot -s tests/integration
run: poetry install

- name: Run tests with pytest
run: poetry run pytest --cov=fedot -s tests/integration

- name: Codecov-coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests

0 comments on commit a9ecb8e

Please sign in to comment.