Skip to content

GHA: fix syntax

GHA: fix syntax #3

Workflow file for this run

name: Python package
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python: ["3.6", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python }}
- name: Install Conda packages
run: |
conda info
conda install numpy pytest python-cffi
conda install -c paulscherrerinstitute epics-base
- name: Install pip packages
run: |
pip install -e .
pip install git+https://github.com/CaChannel/CaChannel.git
- name: Start EPICS IOC
if: ${{ runner.os != "Windows" }}

Check failure on line 29 in .github/workflows/build_test.yml

View workflow run for this annotation

GitHub Actions / Python package

Invalid workflow file

The workflow is not valid. .github/workflows/build_test.yml (Line: 29, Col: 13): Unexpected symbol: '"Windows"'. Located at position 14 within expression: runner.os != "Windows" .github/workflows/build_test.yml (Line: 34, Col: 13): Unexpected symbol: '"Windows"'. Located at position 14 within expression: runner.os == "Windows"
run: |
printenv
$EPICS_BASE/bin/$EPICS_HOST_ARCH/softIoc tests/test.db &
- name: Start EPICS IOC
if: ${{ runner.os == "Windows" }}
shell: powershell
run: |
$SoftIOC = Start-Process -FilePath softIoc.exe -WorkingDirectory $Env:EPICS_BASE/bin/$Env:EPICS_HOST_ARCH -ArgumentList "-D softIoc.dbd -S -d test.db" -PassThru
- name: Run tests
run: |
py.test tests/test_context.py
py.test tests/test_preemptive.py
py.test tests/test_thread.py
py.test tests/test_callbacks.py
py.test tests/test_put_types.py
py.test tests/test_get_dbrtypes.py
py.test tests/test_sg.py
python -m CaChannel.CaChannel
env:
CACHANNEL_BACKEND: caffi
- name: Stop EPICS IOC
run: killall softIoc