Skip to content

Commit 4d2adba

Browse files
Update ci.yml (#57)
* Update ci.yml * Update README.md * Update Project.toml * Update fit.jl * Update ci.yml * Update Project.toml * Update ci.yml * Update factormodel.jl * Update factormodel.jl * update * Update fit.jl
1 parent ed988a9 commit 4d2adba

File tree

4 files changed

+42
-17
lines changed

4 files changed

+42
-17
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,30 @@ on:
77
branches:
88
- master
99
tags: '*'
10+
workflow_dispatch:
1011
jobs:
1112
test:
1213
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1314
runs-on: ${{ matrix.os }}
15+
continue-on-error: ${{ matrix.version == 'nightly' }}
1416
strategy:
1517
fail-fast: false
1618
matrix:
1719
version:
18-
- '1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
19-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
20+
- '1.9'
21+
- '1'
22+
# - 'nightly'
2023
os:
2124
- ubuntu-latest
2225
arch:
2326
- x64
2427
steps:
25-
- uses: actions/checkout@v2
26-
- uses: julia-actions/setup-julia@v1
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
2730
with:
2831
version: ${{ matrix.version }}
2932
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v1
33+
- uses: actions/cache@v4
3134
env:
3235
cache-name: cache-artifacts
3336
with:
@@ -40,6 +43,28 @@ jobs:
4043
- uses: julia-actions/julia-buildpkg@v1
4144
- uses: julia-actions/julia-runtest@v1
4245
- uses: julia-actions/julia-processcoverage@v1
43-
- uses: codecov/codecov-action@v1
46+
- uses: codecov/codecov-action@v5
4447
with:
45-
file: lcov.info
48+
files: lcov.info
49+
# docs:
50+
# name: Documentation
51+
# runs-on: ubuntu-latest
52+
# steps:
53+
# - uses: actions/checkout@v4
54+
# - uses: julia-actions/setup-julia@v2
55+
# with:
56+
# version: '1'
57+
# - run: |
58+
# julia --project=docs -e '
59+
# using Pkg
60+
# Pkg.develop(PackageSpec(path=pwd()))
61+
# Pkg.instantiate()'
62+
# - run: |
63+
# julia --project=docs -e '
64+
# using Documenter: doctest
65+
# using ForwardDiff
66+
# doctest(ForwardDiff)'
67+
# - run: julia --project=docs docs/make.jl
68+
# env:
69+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "InteractiveFixedEffectModels"
22
uuid = "80307280-efb2-5c5d-af8b-a9c15821677b"
3-
version = "1.2.2"
3+
version = "1.3.0"
44

55
[deps]
66
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
@@ -23,7 +23,7 @@ Vcov = "ec2bfdc2-55df-4fc9-b9ae-4958c2cf2486"
2323
[compat]
2424
DataFrames = "0.21, 0.22, 1"
2525
FillArrays = "0.7, 0.8, 0.9, 0.10, 0.11, 0.12, 0.13, 1"
26-
FixedEffectModels = "1.5"
26+
FixedEffectModels = "1.11"
2727
FixedEffects = "2"
2828
GroupedArrays = "0.3"
2929
LeastSquaresOptim = "0.7, 0.8"
@@ -34,7 +34,7 @@ StatsModels = "0.7"
3434
StatsFuns = "0.9, 1"
3535
Tables = "1"
3636
Vcov = "0.8"
37-
julia = "1.6"
37+
julia = "1.9"
3838

3939
[extras]
4040
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/FixedEffects/InteractiveFixedEffectModels.jl.svg?branch=master)](https://travis-ci.com/FixedEffects/InteractiveFixedEffectModels.jl)
1+
[![Build status](https://github.com/matthieugomez/InteractiveFixedEffectModels.jl/workflows/CI/badge.svg)](https://github.com/matthieugomez/InteractiveFixedEffectModels.jl/actions)
22
[![Coverage Status](https://coveralls.io/repos/matthieugomez/InteractiveFixedEffectModels.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/matthieugomez/InteractiveFixedEffectModels.jl?branch=master)
33

44
## Installation

test/factormodel.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
using DataFrames, InteractiveFixedEffectModels,Test, CSV
2-
df = df = DataFrame(CSV.File(joinpath(dirname(pathof(InteractiveFixedEffectModels)), "../dataset/Cigar.csv")))
2+
df = DataFrame(CSV.File(joinpath(dirname(pathof(InteractiveFixedEffectModels)), "../dataset/Cigar.csv")))
33

44
for method in [:gauss_seidel, :dogleg, :levenberg_marquardt]
55
println(method)
66
model = @formula Sales ~ 0 + ife(State, Year, 1)
7-
result = regife(df, model, method = method, maxiter = 10_000)
7+
result = regife(df, model, method = method, maxiter = 10_000, save = true)
88
@test abs(result.augmentdf[1, :factors1]) 0.18662770198472406 atol = 1e-1
99
@test abs(result.augmentdf[1, :loadings1]) 587.2272 atol = 1e-1
1010
@test result.augmentdf[1, :residuals] - 15.6928 atol = 1e-1
1111

1212
model = @formula Sales ~ 0 + ife(State, Year, 2)
13-
result = regife(df, model, method = method, maxiter = 10_000)
13+
result = regife(df, model, method = method, maxiter = 10_000, save = true)
1414
@test abs(result.augmentdf[1, :factors1]) 0.18662770198472406 atol = 1e-1
1515
@test abs(result.augmentdf[1, :loadings1]) 587.227 atol = 1e-1
1616
@test result.augmentdf[1, :residuals] 2.16611 atol = 1e-1
1717

1818
model = @formula Sales ~ ife(State, Year, 1) + fe(State)
19-
result = regife(df, model, method = method, maxiter = 10_000)
19+
result = regife(df, model, method = method, maxiter = 10_000, save = true)
2020
@test abs(result.augmentdf[1, :factors1]) 0.17636 atol = 1e-1
2121
@test abs(result.augmentdf[1, :loadings1]) 20.176432452716522 atol = 1e-1
2222
@test result.augmentdf[1, :residuals] - 10.0181 atol = 1e-1
2323
@test result.augmentdf[1, :fe_State] 107.4766 atol = 1e-1
2424

2525
model = @formula Sales ~ ife(State, Year, 2) + fe(State)
26-
result = regife(df, model, method = method, maxiter = 10_000)
26+
result = regife(df, model, method = method, maxiter = 10_000, save = true)
2727
@test abs(result.augmentdf[1, :factors2]) 0.244 atol = 1e-1
2828
@test abs(result.augmentdf[1, :loadings2]) 49.7943 atol = 1e-1
2929
@test result.augmentdf[1, :residuals] 2.165319 atol = 1e-1
3030
@test result.augmentdf[1, :fe_State] 107.47666 atol = 1e-1
3131

3232
model = @formula Sales ~ ife(State, Year, 2) + fe(State)
33-
result = regife(df, model, subset = df.State .<= 30, method = method, maxiter = 10_000)
33+
result = regife(df, model, subset = df.State .<= 30, method = method, maxiter = 10_000, save = true)
3434
@test size(result.augmentdf, 1) == size(df, 1)
3535
@test abs(result.augmentdf[1, :factors1]) 0.20215 atol = 1e-1
3636
@test abs(result.augmentdf[1, :loadings1]) 29.546 atol = 1e-1

0 commit comments

Comments
 (0)