Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tammojan committed Sep 6, 2024
1 parent c226db6 commit 0040006
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 -y casacore-dev build-essential cmake wget libhdf5-dev
- name: Get measures data
run: |
mkdir ${HOME}/casacore-data && pushd ${HOME}/casacore-data
wget -q 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 ..
cmake --build ..
popd
- name: Test PyBDSF
run: |
pushd build
make test
popd

0 comments on commit 0040006

Please sign in to comment.