Skip to content

Commit

Permalink
add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lrauschning committed Dec 10, 2024
1 parent 897a8a3 commit a1a6d19
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# adapted from
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Build python package
name: Build and test msyd

on:
push:
branches: [ "main" ]
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev" ]

jobs:
build:
Expand Down Expand Up @@ -37,8 +37,18 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build package
run: pip install .
- name: Test package is installed successfully
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Test installation
run: |
msyd -h
msyd call -h
msyd view -h
- name: Test example_run.sh
run: |
# alias to a call launching the syri entrypoint from python
# necessary, as the hacky git install does not install the CLI entrypoints
alias syri='python <(echo "import syri.scripts.syri;syri.scripts.syri.main()")'
./example

0 comments on commit a1a6d19

Please sign in to comment.