Skip to content

Commit a1da2ef

Browse files
Create registry.
0 parents  commit a1da2ef

4 files changed

Lines changed: 81 additions & 0 deletions

File tree

.ci/Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
RegistryCI = "0c95cc5f-2f7e-43fe-82dd-79dbcba86b32"
3+
4+
[compat]
5+
RegistryCI = "10"
6+
julia = "1"

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
open-pull-requests-limit: 99
8+
labels:
9+
- "dependencies"
10+
- "github-actions"
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Registry Consistency
2+
on:
3+
merge_group:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
tags: '*'
9+
workflow_dispatch:
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
permissions:
14+
contents: read
15+
jobs:
16+
finalize:
17+
timeout-minutes: 10
18+
needs: [consistency]
19+
if: always()
20+
runs-on: ubuntu-latest
21+
steps:
22+
- run: |
23+
echo consistency: ${{ needs.consistency.result }}
24+
- run: exit 1
25+
if: |
26+
contains('failure cancelled', needs.consistency.result)
27+
28+
consistency:
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 120
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
julia-version:
35+
- '1.10'
36+
- '1'
37+
steps:
38+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
with:
40+
persist-credentials: false
41+
- uses: julia-actions/setup-julia@4c0cb0fce8556fdb04a90347310e5db8b1f98fb9 # v2.7.0
42+
with:
43+
version: ${{ matrix.julia-version }}
44+
- name: Instantiate and precompile the .ci environment
45+
run: |
46+
import Pkg
47+
Pkg.instantiate()
48+
Pkg.precompile()
49+
shell: julia --project=.ci --color=yes {0}
50+
- name: Run the registry consistency tests (RegistryCI.test)
51+
run: |
52+
import RegistryCI
53+
const general_registry_url = "https://github.com/JuliaRegistries/General"
54+
const registry_deps = [general_registry_url]
55+
const registry_path = pwd()
56+
@info "" registry_path registry_deps
57+
RegistryCI.test(registry_path; registry_deps)
58+
shell: julia --project=.ci --color=yes {0}
59+
env:
60+
JULIA_LOAD_PATH: '@'

Registry.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name = "PumasPublicRegistry"
2+
uuid = "520a0f63-b2d4-4225-8b9a-7f2e3b94dc7e"
3+
repo = "https://github.com/PumasAI/PumasPublicRegistry.git"
4+
5+
[packages]

0 commit comments

Comments
 (0)