From b56d2d9d039cc67f63dd0c67f215021ce6bb340a Mon Sep 17 00:00:00 2001 From: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:07:28 -0400 Subject: [PATCH] Update gempyor action to test 3.11 and 3.10 Minor edits to run the gempyor tests with python 3.10 and 3.11. Remove usage of custom docker container. --- .github/workflows/gempyor-ci.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gempyor-ci.yml b/.github/workflows/gempyor-ci.yml index a2cb6e313..d3e968b8a 100644 --- a/.github/workflows/gempyor-ci.yml +++ b/.github/workflows/gempyor-ci.yml @@ -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