use step and cache for python setup

This commit is contained in:
Matthias 2022-05-27 20:12:31 +02:00
parent ca0cba36c2
commit 7d27f0842b
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -144,10 +144,13 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_version }}
cache: 'pip'
- name: Install InvenTree
run: |
sudo apt-get update
sudo apt-get install python3-dev python3-pip python3-venv
pip3 install invoke
invoke install
invoke migrate