Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use virtualenv to setup CI test environments #321

Merged
merged 5 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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