From 127579364285c8af4c971e121eca19a5a1a17c20 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 00000000..60f82b1b --- /dev/null +++ b/.github/workflows/test_install.yml @@ -0,0 +1,24 @@ +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: + install: + runs: + 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