mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-07 09:04:35 +01:00
Update build-cache.yml
This commit is contained in:
parent
5a534fc0d1
commit
c1842856ae
29
.github/workflows/build-cache.yml
vendored
29
.github/workflows/build-cache.yml
vendored
@ -5,8 +5,8 @@ on:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
build-cache:
|
||||
name: Build Cache
|
||||
build-validate-cache:
|
||||
name: Build Lint and Format Cache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -29,3 +29,28 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||
build-pytest-cache:
|
||||
name: Build PyTest Cache
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
id: setup_python
|
||||
with:
|
||||
python-version: '3.8'
|
||||
- name: cache virtualenv
|
||||
uses: actions/cache@v3
|
||||
id: cache-venv-pytest
|
||||
with:
|
||||
path: ${{ env.pythonLocation }}
|
||||
key: ${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.pythonLocation }}-pytest-${{ hashFiles('requirements.txt') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.pythonLocation }}-pytest-
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r requirements.txt
|
||||
python -m pip install pytest-github-actions-annotate-failures
|
||||
if: steps.cache-venv-pytest.outputs.cache-hit != 'true'
|
||||
|
Loading…
Reference in New Issue
Block a user