Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Mar 25, 2024
0 parents commit 930292c
Show file tree
Hide file tree
Showing 311 changed files with 17,486 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 1
labels:
- "dependencies"
- "github-actions"
58 changes: 58 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI
on:
merge_group:
pull_request:
push:
branches:
- master
tags:
- '*'
concurrency:
# Skip intermediate builds: all builds except for builds on the `master` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
permissions:
contents: read
jobs:
finalize:
timeout-minutes: 10
needs: [test]
if: always()
runs-on: [based-on-debian, self-hosted, linux, x64]
steps:
- run: |
echo test: ${{ needs.test.result }}
- run: exit 1
if: |
(needs.test.result != 'success')
test:
env:
JULIA_PKG_SERVER: ${{ secrets.JULIA_PKG_SERVER }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
version:
- '1'
os:
- [based-on-debian, self-hosted, linux, x64]
- [windows, x64, inside-docker, self-hosted]
arch:
- x64
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
with:
persist-credentials: false
- uses: julia-actions/setup-julia@f40c4b69330df1d22e7590c12e76dc2f9c66e0bc
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: PumasAI/add-private-registry@9e7f77818be0d19044e5e752205b6ded86af2cb8
with:
juliahub_token_encoded: ${{ secrets.JULIAPRO_TOKEN_ENCODED }}
private_registry_name: ${{ secrets.PUMASREGISTRY_NAME }}
private_registry_uuid: ${{ secrets.PUMASREGISTRY_UUID }}
- uses: julia-actions/julia-buildpkg@00f9fd6b2600be0a8d80566dd4d4d2389b3468eb
- uses: julia-actions/julia-runtest@79a7e100883947123f8263c5f06e6c0ea3eb972f
48 changes: 48 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:

permissions:
contents: write
pull-requests: write

env:
JULIA_PKG_SERVER: ${{ secrets.JULIA_PKG_SERVER }}

jobs:
CompatHelper:
runs-on: [based-on-debian, self-hosted, linux, x64]
steps:
- uses: julia-actions/setup-julia@f40c4b69330df1d22e7590c12e76dc2f9c66e0bc
with:
version: '1.9'

- name: Add the Pumas Registry
uses: PumasAI/add-private-registry@93e0d6c748c851aabfeac9f27e5c6d211a05dc33
with:
juliahub_token_encoded: ${{ secrets.JULIAPRO_TOKEN_ENCODED }}
private_registry_name: ${{ secrets.PUMASREGISTRY_NAME }}
private_registry_uuid: ${{ secrets.PUMASREGISTRY_UUID }}

- name: "Install CompatHelper"
run: |
import Pkg
name = "CompatHelper"
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
version = "3"
Pkg.add(; name, uuid, version)
shell: julia --color=yes {0}

- name: "Run CompatHelper"
run: |
import CompatHelper, Pkg
CompatHelper.main(
registries = [Pkg.RegistrySpec(uuid=ri.uuid) for ri in Pkg.Registry.reachable_registries()],
use_existing_registries = true
)
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
44 changes: 44 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Documentation

on:
merge_group:
pull_request:
push:
branches:
- master
tags:
- '*'
concurrency:
# Skip intermediate builds: all builds except for builds on the `master` branch
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
build:
env:
JULIA_PKG_SERVER: ${{ secrets.JULIA_PKG_SERVER }}
permissions:
contents: write
statuses: write
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
pull-requests: write
runs-on: [based-on-debian, self-hosted, linux, x64]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: julia-actions/setup-julia@f40c4b69330df1d22e7590c12e76dc2f9c66e0bc
with:
version: '1'
- uses: PumasAI/add-private-registry@9e7f77818be0d19044e5e752205b6ded86af2cb8
with:
juliahub_token_encoded: ${{ secrets.JULIAPRO_TOKEN_ENCODED }}
private_registry_name: ${{ secrets.PUMASREGISTRY_NAME }}
private_registry_uuid: ${{ secrets.PUMASREGISTRY_UUID }}
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
JULIA_DEBUG: Documenter
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia --project=docs/ docs/make.jl
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Manifest.toml
*.pdf
/output
/cache
/docs/build
.DS_Store
34 changes: 34 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name = "SummaryTables"
uuid = "6ce4ecf0-73a7-4ce3-9fb4-80ebfe887b60"
authors = ["Mike <[email protected]>", "Julius <[email protected]>"]
version = "0.9.6"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
EnumX = "4e289a0a-7415-4d19-859d-a7e5c4648b56"
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5"
MultipleTesting = "f8716d33-7c4a-5097-896f-ce0ecbd3ef6b"
NaturalSort = "c020b1a1-e9b0-503a-9c33-f039bfc54a85"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
WriteDocx = "d049ceea-54ee-41d7-a26f-ba29db3b6599"

[compat]
CategoricalArrays = "0.10"
DataFrames = "1"
EnumX = "1"
HypothesisTests = "0.10, 0.11"
MultipleTesting = "0.5, 0.6"
NaturalSort = "1.0"
OrderedCollections = "1"
SHA = "0.7"
Statistics = "1"
StatsBase = "0.33, 0.34"
Tables = "1"
WriteDocx = "0.5"
julia = "1.7"
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SummaryTables.jl

<div align="center">
<picture>
<img alt="SummaryTables.jl logo"
src="/docs/src/assets/logo.png" width="150">
</picture>
</div>

[![][docs-stable-img]][docs-stable-url]
[![][docs-master-img]][docs-master-url]

[docs-stable-img]: https://img.shields.io/badge/Docs-Stable-lightgrey.svg
[docs-stable-url]: https://pumasai.github.io/SummaryTables.jl/stable/
[docs-master-img]: https://img.shields.io/badge/Docs-Dev-blue.svg
[docs-master-url]: https://pumasai.github.io/SummaryTables.jl/dev/
7 changes: 7 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
SummaryTables = "6ce4ecf0-73a7-4ce3-9fb4-80ebfe887b60"
Typst_jll = "eb4b1da6-20f6-5c66-9826-fdb8ad410d0e"
WriteDocx = "d049ceea-54ee-41d7-a26f-ba29db3b6599"
tectonic_jll = "d7dd28d6-a5e6-559c-9131-7eb760cdacc5"
24 changes: 24 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Documenter, SummaryTables

makedocs(
sitename = "SummaryTables.jl",
pages = [
"index.md",
"output.md",
"Predefined Tables" => [
"predefined_tables/listingtable.md",
"predefined_tables/summarytable.md",
"predefined_tables/table_one.md",
],
"Custom Tables" => [
"custom_tables/table.md",
"custom_tables/cell.md",
"custom_tables/cellstyle.md",
],
]
)

deploydocs(
repo = "github.com/PumasAI/SummaryTables.jl.git",
push_preview = true,
)
5 changes: 5 additions & 0 deletions docs/src/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# API

```@autodocs
Modules = [SummaryTables]
```
Loading

0 comments on commit 930292c

Please sign in to comment.