Forecast chain #77
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: basic CI | |
on: | |
pull_request: | |
branches: main | |
jobs: | |
build-and-run-pytest: | |
runs-on: ubuntu-latest | |
steps: | |
# First step (unnamed here) is to checkout to the branch that triggered the event | |
- uses: actions/checkout@v3 | |
# Second step: run pre-commit hooks | |
- uses: pre-commit/[email protected] | |
# Third step: install python 3.10 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
# Fourth step: install poetry | |
- name: Install Poetry | |
uses: abatilo/actions-poetry@v2 | |
# Fifth step: install | |
- name: Install packages | |
run: poetry install | |
# Sixth step: run tests with Pytest | |
- name: Run tests | |
run: poetry run pytest -v . |