# Add unregistered package to CI

**URL:** https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720
**Category:** General Usage
**Tags:** question, ci
**Created:** [October 24, 2024, 8:09pm UTC](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720 "2024-10-24T20:09:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [October 24, 2024, 8:09pm UTC](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720/1 "2024-10-24T20:09:12Z")

</div>

I would like to run CI with an unregistered package, or a package that is registered to an alternative registry via LocalRegistry.jl. To do something similar with Documenter.jl, I added something like this to the yml file:

```julia
name: instantiate environment
        run: |
            julia -e '
              using Pkg
              Pkg.add(url="https://xyz")
              Pkg.develop(PackageSpec(path=pwd()))'

```

The third answer on this [thread](https://stackoverflow.com/questions/70375922/how-to-add-unregisted-package-in-julia-with-continious-integrationgitlab-ci) suggests including the commands above in the CI.yml file. But where do I insert the commands? Here is the CI.yml file I am using:

> **Summary**
>
> ```julia
> name: CI
> on:
> push:
> branches:
> - main
> tags: ['*']
> pull_request:
> workflow_dispatch:
> concurrency:
> # Skip intermediate builds: always.
> # Cancel intermediate builds: only if it is a pull request build.
> group: ${{ github.workflow }}-${{ github.ref }}
> cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
> jobs:
> test:
> name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
> runs-on: ${{ matrix.os }}
> timeout-minutes: 60
> permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
> actions: write
> contents: read
> strategy:
> fail-fast: false
> matrix:
> version:
> - '1.11'
> - '1.6'
> - 'pre'
> os:
> - ubuntu-latest
> arch:
> - x64
> steps:
> - uses: actions/checkout@v4
> - uses: julia-actions/setup-julia@v2
> with:
> version: ${{ matrix.version }}
> arch: ${{ matrix.arch }}
> - uses: julia-actions/cache@v2
> - uses: julia-actions/julia-buildpkg@v1
> - uses: julia-actions/julia-runtest@v1
> 
> ```

Thanks!

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [October 25, 2024, 12:16am UTC](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720/2 "2024-10-25T00:16:30Z")

</div>

Have you considered adding the package to the [sources section of the project](https://julialang.org/blog/2024/10/julia-1.11-highlights/#sources_section_in_projecttoml_in_pkgjl)?

---

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [October 25, 2024, 8:28am UTC](https://discourse.julialang.org/t/add-unregistered-package-to-ci/121720/3 "2024-10-25T08:28:29Z")

</div>

Thanks. I was not aware of that new feature in 1.11. It worked perfectly.
