Skip to content

Commit

Permalink
Merge pull request #1 from pgleeson/main
Browse files Browse the repository at this point in the history
 Add gha script to test examples
  • Loading branch information
pgleeson authored Feb 9, 2024
2 parents 827e26b + 384db5f commit b1c5dfc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test examples

on:
push:
branches: [ main, development, experimental ]
pull_request:
branches: [ main, development, experimental ]

jobs:
build:

runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.9", "3.10", "3.11"]
runs-on: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Build package
run: |
pip install .
- name: Test some examples
if: ${{ matrix.python-version != '3.7' || matrix.runs-on != 'macos-latest' }} # mac + py3.7 requires build of _bz2 module...
run: |
cd scripts
python peptideGPCR_binding.py
- name: Final version info
run: |
pip list

0 comments on commit b1c5dfc

Please sign in to comment.