Skip to content

Commit

Permalink
Update gempyor action to test 3.11 and 3.10
Browse files Browse the repository at this point in the history
Minor edits to run the gempyor tests with python 3.10 and 3.11. Remove
usage of custom docker container.
  • Loading branch information
TimothyWillard committed Oct 7, 2024
1 parent b5c41cf commit b56d2d9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/gempyor-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,30 @@ on:
jobs:
unit-tests:
runs-on: ubuntu-latest
container:
image: hopkinsidd/flepimop:latest-dev
options: --user root
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Install the gempyor package
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install gempyor
run: |
source /var/python/3.10/virtualenv/bin/activate
python -m pip install --upgrade pip
python -m pip install "flepimop/gempyor_pkg[test]"
python -m pip install "flepimop/gempyor_pkg[dev]"
shell: bash
- name: Run gempyor tests
run: |
source /var/python/3.10/virtualenv/bin/activate
cd flepimop/gempyor_pkg
pytest --exitfirst
shell: bash
- name: Run gempyor-cli integration tests from examples
run: |
source /var/python/3.10/virtualenv/bin/activate
cd examples
pytest --exitfirst
shell: bash

0 comments on commit b56d2d9

Please sign in to comment.