Skip to content

Commit

Permalink
Merge pull request #7 from lofar-astron/add_ci
Browse files Browse the repository at this point in the history
Draft: Add github action
  • Loading branch information
tammojan authored Sep 6, 2024
2 parents c226db6 + fe1510d commit d07e54a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and test

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Apt install required packages
run: |
sudo apt install -qq -y casacore-dev cmake libhdf5-dev > /dev/null
- name: Get measures data
run: |
mkdir ${HOME}/casacore-data && pushd ${HOME}/casacore-data
wget -q ftp://[email protected]/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 ..
cmake --build .
popd
- name: Test PyBDSF
run: |
pushd build
make test
popd

0 comments on commit d07e54a

Please sign in to comment.