Fix hera_sim tests #810
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |