Skip to content

Commit

Permalink
Fine tuning Yeo Johnson (#31)
Browse files Browse the repository at this point in the history
* add M1 CI, fix test on M1

* add YeoJohnson to precompile load

* only do percy on ubuntu

* version bump
  • Loading branch information
palday authored Aug 9, 2024
1 parent 6d29a05 commit d2b9b4a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
version: [1.9, 1]
arch: [x64]
os: [ubuntu-latest]
version:
- '1.9'
- '1'
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Julia Setup
uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
with:
cache-compiled: "true"
Expand All @@ -52,15 +54,15 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Setup Node for Percy
if: ${{ matrix.version == '1' }}
if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Install Percy CI
if: ${{ matrix.version == '1' }}
if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
run: npm install --save-dev @percy/cli
- name: Percy Upload
if: ${{ matrix.version == '1' }}
if: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
run: |
ls ./test/out/ # useful for debugging
npx percy upload ./test/out
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BoxCox"
uuid = "1248164d-f7a6-4bdb-8e8d-8c4a187b3ce6"
authors = ["Phillip Alday <[email protected]>"]
version = "0.3.2"
version = "0.3.3"

[deps]
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
Expand Down
2 changes: 2 additions & 0 deletions src/BoxCox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ end
@compile_workload begin
fit(BoxCoxTransformation, y2)
fit(BoxCoxTransformation, X, y2)
fit(YeoJohnsonTransformation, y)
fit(YeoJohnsonTransformation, X, y)
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/yeojohnson.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ end
@test only(params(yt)) -1 atol = 0.1
ci = confint(yt; fast=false)
ref_ci = [-1.73449, -0.413651]
@test all(isapprox.(confint(yt; fast=true), ci; atol=0.01))
@test all(isapprox.(confint(yt; fast=true), ci; atol=0.05))
@test all(isapprox.(ci, ref_ci; rtol=0.05))

@testset "mixed models + makie integration" begin
Expand Down

2 comments on commit d2b9b4a

@palday
Copy link
Owner Author

@palday palday commented on d2b9b4a Aug 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/112756

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" d2b9b4ab4a121b75eae32011deefc80180f80aa2
git push origin v0.3.3

Please sign in to comment.