Skip to content

Draft: Add github action #2

Draft: Add github action

Draft: Add github action #2

Workflow file for this run

name: Build and test PyBDSF
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Apt install required packages
run: |
sudo apt-get install -y libcasacore-dev build-essential cmake wget
- name: Get measures data
run: |
mkdir ${HOME}/casacore-data && pushd ${HOME}/casacore-data
wget ftp://anonymous@ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar
tar xf WSRT_Measures.ztar
echo "measures.directory: ~/casacore-data" > ${HOME}/.casarc
popd
- name: Build and install
run: |
mkdir build
pushd build
cmake --build ..
popd
- name: Test PyBDSF
run: |
pushd build
make test
popd