Skip to content

Commit

Permalink
fix linreg test on julia dev (#92)
Browse files Browse the repository at this point in the history
* swap to central project.toml for multiple manifest/julia version life

* increase n in simplelinreg test

* add nightly and apple silicon to CI
  • Loading branch information
palday authored Apr 16, 2024
1 parent 7e55e15 commit 42840b6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 22 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
version: [1.9]
arch: [x64]
os: [ubuntu-22.04] # macos-10.15, windows-2019
version: [1.9, 1]
os: [ubuntu-22.04, macos-14]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Julia Setup
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Cache
uses: julia-actions/cache@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build/
# committed for packages, but should be committed for applications that require a static
# environment.
Manifest.toml
Manifest-v*.toml

# Editor files
.vscode/*
Expand Down
18 changes: 18 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,31 @@ SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"

[compat]
Aqua = "0.5, 0.6"
BSplineKit = "0.15, 0.16, 0.17"
CairoMakie = "0.11"
DataFrames = "1"
Distributions = "0.25"
KernelDensity = "0.6.3"
Makie = "0.20"
MixedModels = "4.14"
PrecompileTools = "1"
Random = "1"
SpecialFunctions = "1, 2"
Statistics = "1"
StatsBase = "0.33, 0.34"
Suppressor = "0.2"
TestSetExtensions = "3"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestSetExtensions = "98d24dd4-01ad-11ea-1b02-c9a08f80db04"

[targets]
test = ["Aqua", "Test", "TestSetExtensions", "CairoMakie", "Random", "Statistics", "Suppressor"]
16 changes: 0 additions & 16 deletions test/Project.toml

This file was deleted.

5 changes: 3 additions & 2 deletions test/utils_and_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ end

@testset "Simple linear regression" begin
a, b = 1, 2
x = collect(1:10)
y = randn(MersenneTwister(42), 10) * 0.1
n = 100
x = 1:n
y = randn(MersenneTwister(42), n) * 0.1
@. y += a + b * x
result = simplelinreg(x, y)
@test result isa Tuple
Expand Down

0 comments on commit 42840b6

Please sign in to comment.