Skip to content

fix python versions

fix python versions #2

Workflow file for this run

name: PyTest and Coverage
on:
pull_request:
branches:
- main # Or whichever is your default branch
push:
branches:
- codecov
jobs:
test:
steps:

Check failure on line 14 in .github/workflows/pytest_workflow.yml

View workflow run for this annotation

GitHub Actions / PyTest and Coverage

Invalid workflow file

The workflow is not valid. .github/workflows/pytest_workflow.yml (Line: 14, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Install dependencies with Poetry
run: |
poetry install
- name: Run tests with coverage using Poetry
run: |
poetry run pytest tests --cov=./
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true # Set to true if CI should fail when codecov fails