Skip to content

multiple os ci - inital commit #1

multiple os ci - inital commit

multiple os ci - inital commit #1

Workflow file for this run

on:
workflow_call:
inputs:
working-directory:
required: true
type: string
description: "From which folder this pipeline executes"
upload_coverage:
description: 'Wheather to upload coverage report to codecov or not'
required: false
type: boolean
default: true
env:
POETRY_VERSION: "1.7.1"
jobs:
build-linux:
defaults:
run:
working-directory: ${{ inputs.working-directory }}
runs-on: ubuntu-latest
matrix:

Check failure on line 24 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 24
python-version:
- "3.9"
- "3.10"
- "3.11"
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }}
steps:
- name: Free Disk Space
uses: jlumbroso/[email protected]
if: runner.os == 'Linux'
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: false
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: ${{ inputs.working-directory }}
cache-key: infinity-emb-test
- name: Install dependencies
shell: bash
run: poetry install --extras all --with test
- name: Run Pytest Coverage
run: |
poetry run coverage run -m --source ./infinity_emb pytest tests
poetry run coverage xml
- name: Upload coverage Report to Codecov for python 3.11
if: ${{ matrix.python-version == '3.11' && inputs.upload_coverage == true }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}