# Julia CI (github actions with codecov) setup for package development

**URL:** <https://discourse.julialang.org/t/julia-ci-github-actions-with-codecov-setup-for-package-development/76060>\
**Category:** Package Management\
**Tags:** question, package\
**Created:** [February 9, 2022, 7:09am UTC](https://discourse.julialang.org/t/julia-ci-github-actions-with-codecov-setup-for-package-development/76060 "2022-02-09T07:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bicepjai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicepjai/32/18158_2.png) [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Post date:** [February 9, 2022, 7:09am UTC](https://discourse.julialang.org/t/julia-ci-github-actions-with-codecov-setup-for-package-development/76060/1 "2022-02-09T07:09:57Z")

</div>

I am working on a package and trying to setup testing, code coverage for the package.  
Got lot of advice from the following thread [Easy workflow file for setting up GitHub Actions CI for your Julia package](https://discourse.julialang.org/t/easy-workflow-file-for-setting-up-github-actions-ci-for-your-julia-package/49765)

Trying to use Github actions for running tests and getting code coverage this public repo.  
This is my first package, so i did expect some learning curve in setting up the CI. After runs i get these codecov reports that have broken links, patch images and warning messages but also coverage info. [Reference PR](https://github.com/bicepjai/PortfolioOpt.jl/pull/10) where the CI was run

Can someone help me finish this CI codecov setup ?

 ![Screen Shot 2022-02-08 at 23.06.56](https://global.discourse-cdn.com/julialang/original/3X/9/e/9e626b0d64310cca72e2978ae97daee94436b7d5.png)

The CI.yml file can be seen [here](https://github.com/bicepjai/PortfolioOpt.jl/blob/Initial_setup/.github/workflows/CI.yml) I have also pasted it here

```julia
name: CI

# https://discourse.julialang.org/t/easy-workflow-file-for-setting-up-github-actions-ci-for-your-julia-package/49765
on:
  push:
    branches:
      - testing
  pull_request:
    branches:
      - testing
jobs:
  test:
    name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        version:
          - "1.6.5"
        os:
          - ubuntu-latest
        arch:
          - x64
    steps:
      - uses: actions/checkout@v2
      - uses: julia-actions/setup-julia@v1
        with:
          version: ${{ matrix.version }}
          arch: ${{ matrix.arch }}
          show-versioninfo: true
      - uses: actions/cache@v1
        env:
          cache-name: cache-artifacts
        with:
          path: ~/.julia/artifacts
          key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
          restore-keys: |
            ${{ runner.os }}-test-${{ env.cache-name }}-
            ${{ runner.os }}-test-
            ${{ runner.os }}-
      - uses: julia-actions/julia-buildpkg@v1
      - uses: julia-actions/julia-runtest@v1
      - uses: julia-actions/julia-processcoverage@v1
      - uses: codecov/codecov-action@v2
        with:
          verbose: true
          files: lcov.info

```

---

<div class="post-metadata">

**Author:** ![bicepjai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bicepjai/32/18158_2.png) [@bicepjai](https://discourse.julialang.org/u/bicepjai)\
**Post date:** [February 13, 2022, 9:07pm UTC](https://discourse.julialang.org/t/julia-ci-github-actions-with-codecov-setup-for-package-development/76060/2 "2022-02-13T21:07:33Z")

</div>

Watching this video by @tim.holy made me understand that nothing was wrong.

[![](https://global.discourse-cdn.com/julialang/original/3X/6/6/66c9e21a27e5277531493ed1f2d37b82cebec905.jpeg "Continuous integration, documentation, package versioning, and releases") ](https://www.youtube.com/watch?v=unXzO6amVoQ&t=515)
