Skip to content

Conversation

FredericWantiez
Copy link
Member

Adding doc and examples workflow to the repo. Also a basic writeup for the API.
The examples are still to-do

@coveralls
Copy link

coveralls commented Nov 13, 2021

Pull Request Test Coverage Report for Build 1456670006

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 59.709%

Files with Coverage Reduction New Missed Lines %
src/container.jl 1 91.72%
Totals Coverage Status
Change from base Build 1273445087: -0.2%
Covered Lines: 246
Relevant Lines: 412

💛 - Coveralls

@codecov
Copy link

codecov bot commented Nov 13, 2021

Codecov Report

Merging #33 (2109581) into master (9f8522f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #33   +/-   ##
=======================================
  Coverage   59.95%   59.95%           
=======================================
  Files           6        6           
  Lines         412      412           
=======================================
  Hits          247      247           
  Misses        165      165           
Impacted Files Coverage Δ
src/container.jl 92.41% <ø> (ø)
src/resampling.jl 96.55% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f8522f...2109581. Read the comment docs.

@FredericWantiez
Copy link
Member Author

Not quite sure why it does not publish across forks but here's a preview
https://fredericwantiez.github.io/AdvancedPS.jl/previews/PR7/

@devmotion
Copy link
Member

Not quite sure why it does not publish across forks but here's a preview https://fredericwantiez.github.io/AdvancedPS.jl/previews/PR7/

This is a limitation of Documenter + Github (also due to a quite restrictive security model of Github actions).

@yebai
Copy link
Member

yebai commented Nov 13, 2021

Maybe we can merge this PR so that doc previews can build? More improvements can be added in separate PRs. It would make previewing changes possible for this repo.

@devmotion
Copy link
Member

Doc previews will never work for PRs from forks, it's not an issue with setting it up first (but maybe this was clear already).

@yebai
Copy link
Member

yebai commented Nov 13, 2021

Right - I wasn't aware of that. Once this PR is merged, future PRs can be created from this repo directly. @FredericWantiez I think you can work from this repo directly, let me know if there is an issue.

)...,
],
],
checkdocs=:exports,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could use

Suggested change
checkdocs=:exports,
strict=true,
checkdocs=:exports,

to ensure that an error is thrown and the action fails if something fails or e.g. is not documented. Otherwise one always has to check the logs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, missed that. Yes let's fail instead

with:
token: ${{ secrets.GITHUB_TOKEN }}

ssh: ${{ secrets.DOCUMENTER_KEY }}
Copy link
Member

Choose a reason for hiding this comment

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

Was the key and corresponding secret added to the repo?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, generated a new pair and added it. I don't think we have keys at the organization level ?

README.md Outdated

### Installation

Inside the julia REPL
Copy link
Member

Choose a reason for hiding this comment

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

IIRC the convention is to use uppercase for the language and lowercase only for the binary:

Suggested change
Inside the julia REPL
Inside the Julia REPL

README.md Outdated
[![Coverage](https://coveralls.io/repos/github/TuringLang/AdvancedPS.jl/badge.svg?branch=master)](https://coveralls.io/github/TuringLang/AdvancedPS.jl?branch=master)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)

AdvancedPS provides and efficient implementation of common particle based Monte Carlo samplers using the [AbstractMCMC](https://github.com/TuringLang/AbstractMCMC.jl) interface.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
AdvancedPS provides and efficient implementation of common particle based Monte Carlo samplers using the [AbstractMCMC](https://github.com/TuringLang/AbstractMCMC.jl) interface.
AdvancedPS provides an efficient implementation of common particle based Monte Carlo samplers using the [AbstractMCMC](https://github.com/TuringLang/AbstractMCMC.jl) interface.

Maybe also mention Libtask (until it is replaced)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, seems like Libtask is always the pain point when people look at AdvancedPS

docs/make.jl Outdated
Comment on lines 45 to 49
# Print `@debug` statements (https://github.com/JuliaDocs/Documenter.jl/issues/955)
if haskey(ENV, "GITHUB_ACTIONS")
ENV["JULIA_DEBUG"] = "Documenter"
end

Copy link
Member

Choose a reason for hiding this comment

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

It's set in the action already:

Suggested change
# Print `@debug` statements (https://github.com/JuliaDocs/Documenter.jl/issues/955)
if haskey(ENV, "GITHUB_ACTIONS")
ENV["JULIA_DEBUG"] = "Documenter"
end

@FredericWantiez
Copy link
Member Author

@yebai agree, let's get the scaffolding in and I'll move away from my forks

@yebai yebai merged commit fa81895 into TuringLang:master Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants