Skip to content

Fix hera_sim tests #810

Fix hera_sim tests

Fix hera_sim tests #810

Workflow file for this run

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.10"
steps:
- uses: actions/checkout@main
with:
fetch-depth: 1
- 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]
- 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 --log-cli-level INFO