Skip to content

Commit

Permalink
Use virtualenv to setup CI test environments (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins authored Oct 31, 2024
1 parent 5fe0603 commit 62300f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
python -m pip install -U
pip
setuptools
pipenv
virtualenv
- name: Checkout source
uses: actions/checkout@v4
Expand Down Expand Up @@ -64,11 +64,18 @@ jobs:
echo "NUMBA_NRT_STATS=1" >> .env
echo "NUMBA_CAPTURED_ERRORS='new_style'" >> .env
- name: Create base virtual environment
run: python -m virtualenv -p ${{ matrix.python-version }} /tmp/base

- name: Install base codex-africanus
run: pipenv install .[testing]
run: |
source /tmp/base/bin/activate
pip install .[testing]
- name: Run base test suite
run: pipenv run py.test -s -vvv africanus/
run: |
source /tmp/base/bin/activate
py.test -s -vvv africanus/
- name: List the measures directory
run: curl ftp://ftp.astron.nl/outgoing/Measures/ > measures_dir.txt
Expand All @@ -89,17 +96,18 @@ jobs:
curl ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar | tar xvzf - -C ~/measures
echo "measures.directory: ~/measures" > ~/.casarc
- name: Install complete codex-africanus
run: >
pipenv install
.[complete]
git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder
- name: Create complete virtual environment
run: python -m virtualenv -p ${{ matrix.python-version }} /tmp/complete

- name: Log installed package versions
run: pipenv graph
- name: Install complete codex-africanus
run: |
source /tmp/complete/bin/activate
pip install .[complete] git+https://gitlab.mpcdf.mpg.de/ift/nifty_gridder.git#egg=nifty-gridder
- name: Run complete test suite
run: pipenv run py.test -s -vvv africanus/
run: |
source /tmp/complete/bin/activate
py.test -s -vvv africanus/
deploy:
needs: [test]
Expand Down
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History

0.3.8 (2024-09-29)
------------------
* Use virtualenv to setup github CI test environments (:pr:`321`)
* Update to NumPy 2.0.0 (:pr:`317`)
* Update to python-casacore 3.6.1 (:pr:`317`)
* Test on Python 3.12 (:pr:`318`)
Expand Down

0 comments on commit 62300f2

Please sign in to comment.