fitsrs 0.4.1

Implementation of the FITS image parser
Documentation
name: Testing the CI

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Build
      run: cargo build --verbose
    # only run tests that does not involve fits files because they are not located in the repo anymore
    # the (--lib) argument only execute tests from the library and not the doctest (which open a file not in the repo)
    - name: Run tests
      run: cargo test --lib --verbose -- --skip "test_fits"
    - name: Lint checks
      run: cargo clippy --all-targets --all-features -- -D warnings
    - name: Format check
      run: cargo fmt --all -- --check