mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Install requirements in a virtual environment
This commit is contained in:
@@ -14,15 +14,13 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install requirements
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install --requirement scripts/make_release_requirements.txt
|
||||
|
||||
- name: Update outdated dependencies
|
||||
- name: Gather requirements
|
||||
id: check-outdated
|
||||
run: |
|
||||
set -x
|
||||
python -m venv venv
|
||||
source venv/bin/activate
|
||||
python -m pip install --upgrade pip
|
||||
pip install --requirement scripts/make_release_requirements.txt
|
||||
outdated="$(pip list --outdated --format json | jq)"
|
||||
outdated_count="$(echo "$outdated" | jq 'length')"
|
||||
echo "${outdated}" | jq "[{\"outdated_count\":\"${outdated_count}\"}] + ." > scripts/make_release_requirements.json
|
||||
|
||||
Reference in New Issue
Block a user