CI tests with GitHub Actions

Hi. I have written a simple GitHub Actions workflow to run tests on my package: CorrelationFunctions.jl/test.yml at master · shamazmazum/CorrelationFunctions.jl · GitHub

What should I do if I want to use a new version of a dependent package not yet merged in General? Suppose, I checked it out with actions/checkout. How to tell Pkg to use a package checked out locally instead of that package from General?