feat: tests were updated and measure coverage report #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Recommendation Engine CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v2" | |
- name: "Setup Python" | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: "Install Poetry" | |
run: | | |
pip install pkginfo virtualenv poetry | |
# - name: "Install poetry" | |
# run: | | |
# curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install dependencies | |
run: | | |
poetry install --no-root --no-dev -vvv | |
- name: Poetry virtualenv configuration | |
run: | | |
poetry config virtualenvs.in-project true | |
- name: Run main.py | |
run: | | |
timeout 20s poetry run python main.py || true | |