diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..42373e1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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