-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The default build_and_test.yml file appears to have jinja issues:
The beginning of the file for me is:
name: CI (build and test)
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
name: "Core, Python ${{ matrix.python-version {{ }}, ${{ matrix.os {{ }}"
runs-on: ${{ matrix.os {{ }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
persist-credentials: false
- name: Set up Python ${{ matrix.python-version {{ }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version {{ }}
cache: "pip"
- name: Install package
run: python -m pip install -e .[dev]
- name: Check if manifest has changed
run: fractal-manifest check --package fcf_ome_zarr
- name: Test core library with pytest
run: python -m pytest tests
The problematic lines are:
name: "Core, Python ${{ matrix.python-version {{ }}, ${{ matrix.os {{ }}"
runs-on: ${{ matrix.os {{ }}
And the block:
- name: Set up Python ${{ matrix.python-version {{ }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version {{ }}
cache: "pip"
These lead to the following CI failure:
[Invalid workflow file: .github/workflows/build_and_test.yml#L1](https://github.com/fractal-analytics-platform/fractal-facs-tasks/actions/runs/18567281221/workflow)
(Line: 21, Col: 11): Unexpected symbol: '{{'. Located at position 23 within expression: matrix.python-version {{, (Line: 22, Col: 14): Unexpected symbol: '{{'. Located at position 11 within expression: matrix.os {{, (Line: 31, Col: 15): Unexpected symbol: '{{'. Located at position 23 within expression: matrix.python-version {{, (Line: 34, Col: 27): Unexpected symbol: '{{'. Located at position 23 within expression: matrix.python-version {{
Metadata
Metadata
Assignees
Labels
No labels