set again to cronjob #12
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: Run linters and tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Run image | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: "1.4.2" | |
- name: Install poetry dependencies | |
run: poetry install | |
- name: Prefect Cloud login | |
run: | | |
poetry run prefect config set PREFECT_API_KEY=${{secrets.PREFECT_API_KEY}} | |
poetry run prefect cloud workspace set --workspace "${{secrets.PREFECT_WORKSPACE}}" | |
- name: Run ruff | |
run: | | |
poetry run ruff check . --fix | |
- name: Run pytest | |
run: | | |
poetry run pytest -s tests/test_posts_and_comments.py |