forked from noahgift/python-devops-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
22 lines (22 loc) · 661 Bytes
/
Copy pathaction.yml
File metadata and controls
22 lines (22 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
name: Python setup with cache
description: Setup Python and install deps with caching
runs:
using: composite
steps:
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION || '3.11' }}
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- run: python -m pip install --upgrade pip
shell: bash
- run: pip install -r requirements.txt
shell: bash
- if: hashFiles('requirements-dev.txt') != ''
run: pip install -r requirements-dev.txt
shell: bash
- run: pip install pytest-xdist ruff "safety>=3.0,<4.0"
shell: bash