Skip to content

Commit 7393c89

Browse files
DilumAluthgecodex
andauthored
Add package and Aqua CI (#7)
Co-authored-by: Codex <codex@openai.com>
1 parent 078ed2c commit 7393c89

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed

.github/workflows/CI.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
test:
15+
name: Julia ${{ matrix.version }} - package tests
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
version:
21+
- 'lts'
22+
- '1'
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
- uses: julia-actions/setup-julia@v2
28+
with:
29+
version: ${{ matrix.version }}
30+
- uses: julia-actions/cache@v2
31+
- uses: julia-actions/julia-buildpkg@v1
32+
- uses: julia-actions/julia-runtest@v1
33+
34+
aqua:
35+
name: Julia ${{ matrix.version }} - Aqua tests
36+
runs-on: ubuntu-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
version:
41+
- '1'
42+
steps:
43+
- uses: actions/checkout@v4
44+
with:
45+
persist-credentials: false
46+
- uses: julia-actions/setup-julia@v2
47+
with:
48+
version: ${{ matrix.version }}
49+
- uses: julia-actions/cache@v2
50+
- name: Run Aqua.jl
51+
shell: julia --color=yes {0}
52+
run: |
53+
import Pkg
54+
Pkg.activate(; temp=true)
55+
Pkg.develop(Pkg.PackageSpec(path=pwd()))
56+
Pkg.add("Aqua")
57+
Pkg.instantiate()
58+
59+
using Aqua
60+
using WebCacheUtilities
61+
62+
Aqua.test_all(WebCacheUtilities; stale_deps=false, deps_compat=false)

src/file_cache.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Dates: Dates, TimePeriod
22
using URIs: URI
33

4-
export hit_file_cache, cache_json
4+
export hit_file_cache
55

66
function download_to_cache(filename::String, url::Union{String, URI}; kwargs...)
77
file_path = hit_file_cache(filename; kwargs...) do file_path

0 commit comments

Comments
 (0)