-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (46 loc) · 1.28 KB
/
externaltests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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
cd hera_sim
- name: Install hera_sim
run: |
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: |
python -m pytest --log-cli-level INFO