Skip to content

import and call the env analysis script #20

import and call the env analysis script

import and call the env analysis script #20

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
name: tests
runs-on: [ubuntu-latest]
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: clone the repository
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: upgrade pip
run: |
python -m pip install --upgrade pip
- name: install dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install pytest
- name: run tests
run: |
python -m pytest -rf
e2e:
name: end-to-end
runs-on: [ubuntu-latest]
strategy:
matrix:
env-paths:
- ["envs/env1.yaml"]
- ["envs/env2.yaml"]
- ["envs/env1.yaml", "envs/env2.yaml"]
expected-failure: "false"

Check failure on line 44 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 44, Col: 27): Unexpected value 'false'
include:
- env-paths: ["envs/failing-env1.yaml"]
expected-failure: "true"
steps:
- name: clone the repository
uses: actions/checkout@v4
- name: run action
uses: ./
with:
environment-paths: "${{ toJSON(matrix.env-paths) }}"
- name: evaluate failures
if: |
always()
&& (
(failure() && ${{ matrix.expected-failure }} == "false")
|| (success() && ${{ matrix.expected-failure }} == "true")
)
shell: bash -l {0}
run: exit 1