Skip to content

Commit

Permalink
Github actions use pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
speleo3 committed Jan 31, 2024
1 parent db2cdd0 commit 07ac951
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
build:

runs-on: ubuntu-22.04
env:
PREFIX: ${{ github.workspace }}/install-prefix

steps:
- uses: actions/checkout@v3
Expand All @@ -30,6 +32,7 @@ jobs:
python3-pybind11
python3-pytest
python3-setuptools
python3-venv
- name: Install collada2gltf
run: |
Expand All @@ -41,12 +44,17 @@ jobs:
git clone --depth 1 https://github.com/rcsb/mmtf-cpp.git
cp -R mmtf-cpp/include/mmtf* include/
- name: Set up venv
run: |
python -m venv --system-site-packages $PREFIX
- name: Build
run: |
python setup.py --testing install --prefix=install-prefix
$PREFIX/bin/python setup.py --testing install
env:
DEBUG: 1

- name: Test
working-directory: ./testing
run: |
./install-prefix/bin/pymol -ckqy testing/testing.py --run all
$PREFIX/bin/python -m pytest

0 comments on commit 07ac951

Please sign in to comment.