From 3a8e4af775f3c7b9c3a214d714cf0ee163f2a82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Baru=C4=8Di=C4=87?= Date: Wed, 17 Apr 2024 10:35:21 +0200 Subject: [PATCH] CI: get rid of the Node.js warnings Node.js 16 actions are deprecated. We need to bump the following actions: - julia-actions/setup-julia (to v2) - julia-actions/cache (to v2) - codecov/codecov-action (to v4) Within this commit, a Codecov token has been added to the github secrets. --- .github/workflows/ci.yml | 7 ++++--- README.md | 1 + test.jl | 9 +++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 test.jl diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5dffef..8f95290 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,14 +33,15 @@ jobs: arch: x86 steps: - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: lcov.info diff --git a/README.md b/README.md index 97ac69c..caf36e8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # LIBLINEAR [![CI](https://github.com/innerlee/LIBLINEAR.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/innerlee/LIBLINEAR.jl/actions/workflows/ci.yml) +[![codecov](https://codecov.io/gh/JuliaML/LIBLINEAR.jl/graph/badge.svg?token=wNqvTQNWY1)](https://codecov.io/gh/JuliaML/LIBLINEAR.jl) Julia bindings for [LIBLINEAR](https://www.csie.ntu.edu.tw/~cjlin/liblinear/). diff --git a/test.jl b/test.jl new file mode 100644 index 0000000..b4ff407 --- /dev/null +++ b/test.jl @@ -0,0 +1,9 @@ +using LIBLINEAR +using Statistics + +X = rand(1, 10000) +y = vec(2 .* X) + +m = linear_train(y, X, solver_type=LIBLINEAR.L2R_L2LOSS_SVR, verbose=true) + +println(m.w)