Skip to content

Commit 9a6f748

Browse files
committed
Init repository
0 parents  commit 9a6f748

10 files changed

+417
-0
lines changed

.JuliaFormatter.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
style = "blue"
2+
remove_extra_newlines = true
3+
always_for_in = true
4+
format_docstrings = true
5+
trailing_comma = true
6+
margin = 120

.github/workflows/CI.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags: ['*']
7+
paths:
8+
- '**.toml'
9+
- '**.jl'
10+
- 'docs/*'
11+
- '.github/workflows/CI.yml'
12+
pull_request:
13+
paths:
14+
- '**.toml'
15+
- '**.jl'
16+
- 'docs/*'
17+
- '.github/workflows/CI.yml'
18+
workflow_dispatch:
19+
concurrency:
20+
# Skip intermediate builds: always.
21+
# Cancel intermediate builds: only if it is a pull request build.
22+
group: ${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
24+
jobs:
25+
test:
26+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
version:
32+
- '1.9'
33+
- '1.10'
34+
- '1.11'
35+
os:
36+
- ubuntu-latest
37+
arch:
38+
- x64
39+
steps:
40+
- uses: actions/checkout@v4
41+
- uses: julia-actions/setup-julia@v1
42+
with:
43+
version: ${{ matrix.version }}
44+
arch: ${{ matrix.arch }}
45+
include-all-prereleases: true
46+
- uses: julia-actions/cache@v1
47+
with:
48+
cache-name: CI - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
49+
- name: Add Julia registries
50+
run: |
51+
using Pkg
52+
pkg"registry add https://github.com/bsc-quantic/Registry.git"
53+
pkg"registry add General"
54+
shell: julia --color=yes {0}
55+
- uses: julia-actions/julia-buildpkg@v1
56+
- uses: julia-actions/julia-runtest@v1
57+
- uses: julia-actions/julia-processcoverage@v1
58+
- uses: codecov/codecov-action@v3
59+
with:
60+
files: lcov.info

.github/workflows/CompatHelper.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CompatHelper
2+
on:
3+
schedule:
4+
- cron: 0 0 * * *
5+
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
CompatHelper:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v1
19+
with:
20+
version: "1"
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: Add registries via Git
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
Pkg.Registry.add(Pkg.RegistrySpec(url = "https://github.com/bsc-quantic/Registry.git"))
29+
shell: julia --color=yes {0}
30+
- name: Install CompatHelper
31+
run: |
32+
import Pkg
33+
name = "CompatHelper"
34+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
35+
version = "3"
36+
Pkg.add(; name, uuid, version)
37+
shell: julia --color=yes {0}
38+
- name: Run CompatHelper
39+
run: |
40+
import CompatHelper
41+
CompatHelper.main(; use_existing_registries = true)
42+
shell: julia --color=yes {0}
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Register Package
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
register:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: julia-actions/setup-julia@v1
10+
- name: Generate token
11+
id: generate_token
12+
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
13+
with:
14+
app_id: ${{ secrets.NISUS_APP_ID }}
15+
private_key: ${{ secrets.NISUS_PRIVATE_KEY }}
16+
- uses: bsc-quantic/[email protected]
17+
with:
18+
registry: bsc-quantic/Registry
19+
env:
20+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

.github/workflows/TagBot.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: TagBot
2+
on:
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
contents: write
12+
jobs:
13+
TagBot:
14+
if: github.event_name == 'workflow_dispatch' || github.actor == 'mofeing'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: JuliaRegistries/TagBot@v1
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
ssh: ${{ secrets.DOCUMENTER_KEY }}
21+
registry: bsc-quantic/Registry

.github/workflows/format-check.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: format-check
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
tags: '*'
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
version:
16+
- '1.9'
17+
os:
18+
- ubuntu-latest
19+
arch:
20+
- x64
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: julia-actions/setup-julia@v1
24+
with:
25+
version: ${{ matrix.version }}
26+
arch: ${{ matrix.arch }}
27+
- name: Install JuliaFormatter.jl
28+
run: julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
29+
- name: Format code
30+
run: julia -e 'using JuliaFormatter; format(".", verbose=true)'
31+
- name: Format check
32+
run: |
33+
julia -e '
34+
out = Cmd(`git diff --name-only`) |> read |> String
35+
if out == ""
36+
exit(0)
37+
else
38+
@error "Some files have not been formatted !!!"
39+
write(stdout, out)
40+
exit(1)
41+
end'

.github/workflows/format-pr.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: format-pr
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
branch:
13+
- master
14+
15+
steps:
16+
- uses: julia-actions/setup-julia@v1
17+
with:
18+
version: '1.9'
19+
20+
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ matrix.branch }}
23+
24+
- name: Install JuliaFormatter.jl
25+
shell: julia --color=yes {0}
26+
run: |
27+
import Pkg
28+
Pkg.add("JuliaFormatter")
29+
30+
- name: Format code
31+
shell: julia --color=yes {0}
32+
run: |
33+
using JuliaFormatter
34+
format(".")
35+
36+
- name: Create Pull Request
37+
id: cpr
38+
uses: peter-evans/create-pull-request@v3
39+
with:
40+
token: ${{ secrets.GITHUB_TOKEN }}
41+
commit-message: Format code
42+
title: 'Format code of branch "${{ matrix.branch }}"'
43+
branch: format-${{ matrix.branch }}
44+
delete-branch: true
45+
labels: format
46+
reviewers: mofeing
47+
48+
- name: Check outputs
49+
run: |
50+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
51+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.gitignore

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# General
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Icon must end with two \r
7+
Icon
8+
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear in the root of a volume
14+
.DocumentRevisions-V100
15+
.fseventsd
16+
.Spotlight-V100
17+
.TemporaryItems
18+
.Trashes
19+
.VolumeIcon.icns
20+
.com.apple.timemachine.donotpresent
21+
22+
# Directories potentially created on remote AFP share
23+
.AppleDB
24+
.AppleDesktop
25+
Network Trash Folder
26+
Temporary Items
27+
.apdisk
28+
29+
*~
30+
31+
# temporary files which can be created if a process still has a handle open of a deleted file
32+
.fuse_hidden*
33+
34+
# KDE directory preferences
35+
.directory
36+
37+
# Linux trash folder which might appear on any partition or disk
38+
.Trash-*
39+
40+
# .nfs files are created when an open file is removed but is still being accessed
41+
.nfs*
42+
43+
# Windows thumbnail cache files
44+
Thumbs.db
45+
Thumbs.db:encryptable
46+
ehthumbs.db
47+
ehthumbs_vista.db
48+
49+
# Dump file
50+
*.stackdump
51+
52+
# Folder config file
53+
[Dd]esktop.ini
54+
55+
# Recycle Bin used on file shares
56+
$RECYCLE.BIN/
57+
58+
# Windows Installer files
59+
*.cab
60+
*.msi
61+
*.msix
62+
*.msm
63+
*.msp
64+
65+
# Windows shortcuts
66+
*.lnk
67+
68+
.vscode/*
69+
.vscode/settings.json
70+
!.vscode/tasks.json
71+
!.vscode/launch.json
72+
!.vscode/extensions.json
73+
!.vscode/*.code-snippets
74+
75+
# Local History for Visual Studio Code
76+
.history/
77+
78+
# Built Visual Studio Code Extensions
79+
*.vsix
80+
81+
# Files generated by invoking Julia with --code-coverage
82+
*.jl.cov
83+
*.jl.*.cov
84+
85+
# Files generated by invoking Julia with --track-allocation
86+
*.jl.mem
87+
88+
# System-specific files and directories generated by the BinaryProvider and BinDeps packages
89+
# They contain absolute paths specific to the host computer, and so should not be committed
90+
deps/deps.jl
91+
deps/build.log
92+
deps/downloads/
93+
deps/usr/
94+
deps/src/
95+
96+
# Build artifacts for creating documentation generated by the Documenter package
97+
docs/build/
98+
docs/site/
99+
100+
# File generated by Pkg, the package manager, based on a corresponding Project.toml
101+
# It records a fixed state of all packages used by the project. As such, it should not be
102+
# committed for packages, but should be committed for applications that require a static
103+
# environment.
104+
Manifest.toml

Project.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name = "Albacea"
2+
uuid = "b7eb675e-0b4b-4697-b10d-3f3487e0fa0a"
3+
authors = ["Sergio Sánchez Ramírez <[email protected]>"]
4+
version = "0.1.0"
5+
6+
[deps]
7+
Expronicon = "6b7a57c9-7cc1-4fdf-b7f5-e857abae3636"
8+
9+
[compat]
10+
Expronicon = "0.10"

0 commit comments

Comments
 (0)