Skip to content

Run on all branches for this test #36

Run on all branches for this test

Run on all branches for this test #36

Workflow file for this run

on:
push:
branches: [*]

Check failure on line 3 in .github/workflows/test_installer.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_installer.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
pull_request:
branches: [*]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create and activate virtual environment
run: |
python -m venv .venv
source .venv/bin/activate
- name: Install package
run: |
source .venv/bin/activate
python -m pip install --upgrade pip
pip install .
- name: Run post-installation test
run: |
source .venv/bin/activate
python -c "from hed.models.hed_string import HedString; print('Import test passed.')"