Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Main

on:
push:

env:
CARGO_TERM_COLOR: always

jobs:
build-test:
name: Build and test (${{ matrix.os }})

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2
- name: Build
run: >
cargo build
--locked
--verbose

- name: Run tests (without coverage)
if: matrix.os != 'ubuntu-latest'
run: >
cargo test
--verbose

- name: Run tests (with coverage)
if: matrix.os == 'ubuntu-latest'
run: >
cargo install cargo-tarpaulin
&& cargo tarpaulin
--verbose
--out Xml
--engine llvm
--skip-clean
- name: Upload coverage reports to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3

release-please:
name: Execute release chores

permissions:
contents: write
pull-requests: write

runs-on: ubuntu-latest
needs: build-test

outputs:
created: ${{ steps.release.outputs.release_created }}

steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: rust

publish:
name: Publish to crates.io

runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.created

environment: crates.io

steps:
- uses: actions/checkout@v3
- uses: swatinem/rust-cache@v2

- name: Publish
# https://doc.rust-lang.org/cargo/reference/config.html?highlight=CARGO_REGISTRY_TOKEN#credentials
run: >
cargo publish
--verbose
--locked
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}
33 changes: 19 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
[package]
name = "astrors"
version = "0.1.8"
authors = ["Gustavo Schwarz gustavo.b.schwarz@gmail.com", "Vincenzo Alberice alberice.vincenzo@gmail.com", "Thales Lopes thales.t.lopes@gmail.com"] # A list of the package authors
authors = [
"Gustavo Schwarz gustavo.b.schwarz@gmail.com",
"Vincenzo Alberice alberice.vincenzo@gmail.com",
"Thales Lopes thales.t.lopes@gmail.com",
] # A list of the package authors
edition = "2021"
name = "astrors-fork"
version = "0.1.14"

repository = "https://github.com/schwarzam/astrors"
license = "BSD-3-Clause" # The license your package is under
repository = "https://github.com/schwarzam/astrors"

readme = "README.md"

description = "Astronomical package to deal with FITS (compressed also) and WCS, still in development."
description = "(FORK) Astronomical package to deal with FITS (compressed also) and WCS, still in development."

include = ["/src", "LICENSE", "README.md"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rayon = "1.8.0"
ndarray = { version = "0.15.6", features = ["rayon"] }
ndarray-stats = "0.5.1"
memmap = "0.7"
byteorder = "1.5.0"
polars = { version = "0.38.3", features=["dtype-u8", "dtype-i8", "dtype-i16"] }
ndarray = "0.15.6"
num_cpus = "1.0"
chrono = "0.4.35"
regex = "1.10.3"
polars = {version = "0.45.0", features = ["dtype-u8", "dtype-i8", "dtype-i16"]}
rand = "0.8.5"
rayon = "1.8.0"
regex = "1.10.3"

[build-dependencies]
byteorder = "1.5.0"
cc = "1.0.79"

chrono = "0.4.35"
memmap = "0.7"
ndarray = {version = "0.15.6", features = ["rayon"]}
ndarray-stats = "0.5.1"
num_cpus = "1.0"
Loading