Skip to content

[pre-commit.ci] pre-commit autoupdate #1436

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1436

name: External Tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pyuvsim:
name: herasim
runs-on: ubuntu-latest
defaults:
run:
# Adding -l {0} helps ensure conda can be found properly.
shell: bash -l {0}
env:
PYTHON: "3.11"
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- uses: mpi4py/setup-mpi@v1
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON }}
- name: Install pyuvsim
run: |
pip install --upgrade pip
pip install .
- name: clone hera_sim
run: |
cd ../
git clone https://github.com/HERA-Team/hera_sim.git
- name: Install hera_sim
run: |
cd ../hera_sim
pip install .[tests]
# re-install pyuvsim last to ensure the checked out code is installed
# (because sometimes the hera_sim install overwrites the earlier install.)
# keep the earlier install because it ensures the right dependencies are grabbed.
- name: Install pyuvsim
run: |
cd ../pyuvsim
pip install .
cd ../hera_sim
- name: Environment Info
run: |
pip list
PYVER=`python -c "import sys; print('{:d}.{:d}'.format(sys.version_info.major, sys.version_info.minor))"`
if [[ $PYVER != ${{ env.PYTHON }} ]]; then
exit 1;
fi
- name: run herasim tests
run: |
cd ../hera_sim
python -m pytest