Skip to content

chore: multiple python version support with latest pyspark and hail #2789

chore: multiple python version support with latest pyspark and hail

chore: multiple python version support with latest pyspark and hail #2789

Workflow file for this run

name: Checks
"on":
pull_request:
env:
PYTHON_VERSION_DEFAULT: "3.10.8"
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10','3.11','3.12','3.13']
fast-fail: false

Check failure on line 15 in .github/workflows/pr.yaml

View workflow run for this annotation

GitHub Actions / Checks

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yaml (Line: 15, Col: 7): Unexpected value 'fast-fail'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "temurin"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ env.PYTHON_VERSION_DEFAULT }}-${{ hashFiles('**/poetry.lock') }}
- name: Validate project dependencies
run: poetry check
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Check dependencies
run: poetry run deptry .
- name: Run tests
run: poetry run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: false
verbose: true