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