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 32fafeb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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://[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 --build ..
popd
- name: Test PyBDSF
run: |
pushd build
make test
popd

0 comments on commit 32fafeb

Please sign in to comment.