Use a certain branch of a package dependency for Github Actions CI

Hi,

I’m currently trying to set up GitHub Actions CI for my (still dev) package.
However, my package depends on the current master branch of another package (the last release is breaking compatibility).

I could not figure out how to specify that a certain branch is used for the CI.
Is it possible to request this in the Project.toml? I also tried using a Manifest.toml (since it is possible to specify a certain git-tree-sha1 there) but it seemed this has not been used at all.

1 Like

Add this step to your github workflow before running the tests, adapt as necessary:

      - name: Install dependencies
        run: julia --project=. -e 'using Pkg; pkg"add MyPackage#master"; Pkg.instantiate()'

Alternatively, you can check-in the Manifest and in the environment you do

]add MyPackage#master

so the Manifest will record the revision of this dependency

4 Likes