diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml new file mode 100644 index 000000000..a2a69b66d --- /dev/null +++ b/.github/workflows/test_install.yml @@ -0,0 +1,22 @@ +name: 'Python requirements - get or set in cache' +description: 'Get pip cache from cache else generate it' +inputs: + requirements: + description: 'Cache key to use' + required: true + default: requirements.txt + +runs: + # using: "composite" + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v5 + with: + cache: 'pip' + python-version: '3.12' + cache-dependency-path: | + requirements.txt + + - run: | + pip install -r ${{ inputs.requirements }} + shell: bash