Skip to content

Commit

Permalink
Run installer test in a different folder
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Feb 5, 2024
1 parent 623f753 commit bf462e2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test_installer.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
branches: [develop]
branches: ["develop"]
pull_request:
branches: [develop]
branches: ["develop"]

jobs:
build:
Expand All @@ -19,19 +19,26 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Create work directory
run: |
mkdir workdir
echo "WORKDIR=$(pwd)/workdir" >> $GITHUB_OUTPUT
- name: Create and activate virtual environment
run: |
cd $WORKDIR
python -m venv .venv
source .venv/bin/activate
- name: Install package
run: |
cd $WORKDIR
source .venv/bin/activate
python -m pip install --upgrade pip
pip install .
pip install $GITHUB_WORKSPACE
- name: Run post-installation test
run: |
cd $WORKDIR
source .venv/bin/activate
python -c "from hed.models.hed_string import HedString; print('Import test passed.')"

0 comments on commit bf462e2

Please sign in to comment.