From 32d32ced8abfc624abef48cace873e1b5b76dfba Mon Sep 17 00:00:00 2001 From: Joaquim Nallar Date: Tue, 1 Oct 2024 11:50:42 +0200 Subject: [PATCH] test gitub action --- .github/workflows/test_install.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test_install.yml diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml new file mode 100644 index 000000000..6d78aaf9f --- /dev/null +++ b/.github/workflows/test_install.yml @@ -0,0 +1,23 @@ +name: 'Python requirements - get or set in cache' +on: push +description: 'Get pip cache from cache else generate it' +inputs: + requirements: + description: 'Cache key to use' + required: true + default: requirements.txt + +jobs: + test: + steps: + - uses: actions/checkout@v4 + - 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