Skip to content

Commit

Permalink
Updates [compat]; fixes Documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cadojo committed Jan 4, 2025
1 parent 8a4e0a4 commit 7bfab07
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 27 deletions.
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/JuliaLang/devcontainer-templates/tree/main/src/julia
{
"name": "Julia",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
// A Feature to install Julia via juliaup. More info: https://github.com/JuliaLang/devcontainer-features/tree/main/src/julia.
"ghcr.io/julialang/devcontainer-features/julia:1": {},
"ghcr.io/devcontainers/features/python:1": {
"installJupyterlab": true
},
"ghcr.io/devcontainers-contrib/features/starship:1": {},
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {}
},
"postCreateCommand": {
"Initialize Starship Prompt": "echo eval '$(starship init bash)' >> ~/.bashrc"
}
}
42 changes: 17 additions & 25 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,27 @@ on:
push:
branches:
- main
workflow_dispatch:

permissions:
actions: write
contents: read

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
version:
- "1"
os:
- ubuntu-latest
arch:
- x64
julia-version: ["1"]
julia-arch: [x86]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{
hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
5 changes: 3 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
Dates = "1.11.0"
julia = "1"
Dates = "1"
DocStringExtensions = "0.9.3"
Git = "1.3.1"
GitHub = "5.9.0"
IOCapture = "0.2.5"
Markdown = "1.11.0"
Pkg = "1.11.0"
Pkg = "1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
2 changes: 2 additions & 0 deletions docs/src/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.quarto
*.quarto_ipynb
/.quarto/

0 comments on commit 7bfab07

Please sign in to comment.