adding multi hdu support for fits #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- name: Create test directory | |
run: mkdir -p test | |
- name: Download FITS file | |
run: | | |
curl -o test/table.fits http://data.astropy.org/tutorials/FITS-tables/chandra_events.fits | |
working-directory: ${{ github.workspace }} | |
- name: Run `test` | |
run: zig build test --summary all | |
working-directory: ${{ github.workspace }} | |
env: | |
FITS_TEST_FILE: ${{ github.workspace }}/test/table.fits | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Zig | |
uses: mlugg/setup-zig@v1 | |
with: | |
version: master | |
- name: Run `fmt` | |
run: zig build fmt |