fix runner version

This commit is contained in:
Matthias 2022-05-27 20:39:53 +02:00
parent 0bbe8586bf
commit 31575a03c1
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -14,6 +14,7 @@ on:
env: env:
python_version: 3.9 python_version: 3.9
node_version: 16 node_version: 16
runner_ref: ubuntu-20.04
server_start_sleep: 60 server_start_sleep: 60
@ -29,7 +30,7 @@ env:
jobs: jobs:
pep_style: pep_style:
name: Python Style (PEP8) name: Python Style (PEP8)
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
steps: steps:
- name: Checkout code - name: Checkout code
@ -50,7 +51,7 @@ jobs:
javascript: javascript:
name: JS Template Files name: JS Template Files
needs: pep_style needs: pep_style
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
steps: steps:
- name: Checkout Code - name: Checkout Code
@ -86,7 +87,7 @@ jobs:
html: html:
name: HTML Template Files name: HTML Template Files
needs: pep_style needs: pep_style
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
steps: steps:
- name: Checkout Code - name: Checkout Code
@ -117,7 +118,7 @@ jobs:
pre-commit: pre-commit:
name: pre-commit name: pre-commit
needs: pep_style needs: pep_style
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python ${{ env.python_version }} - name: Set up Python ${{ env.python_version }}
@ -130,7 +131,7 @@ jobs:
python: python:
name: Test inventree-python name: Test inventree-python
needs: pre-commit needs: pre-commit
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
env: env:
wrapper_name: inventree-python wrapper_name: inventree-python
@ -170,7 +171,7 @@ jobs:
coverage: coverage:
name: Tests + Coverage [SQLite] name: Tests + Coverage [SQLite]
needs: ['javascript', 'html', 'pre-commit'] needs: ['javascript', 'html', 'pre-commit']
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
env: env:
INVENTREE_DB_NAME: ./inventree.sqlite INVENTREE_DB_NAME: ./inventree.sqlite
@ -216,7 +217,7 @@ jobs:
postgres: postgres:
name: Tests [PostgreSQL] name: Tests [PostgreSQL]
needs: ['javascript', 'html', 'pre-commit'] needs: ['javascript', 'html', 'pre-commit']
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
if: github.event_name == 'push' if: github.event_name == 'push'
env: env:
@ -281,7 +282,7 @@ jobs:
mysql: mysql:
name: Tests [MySQL] name: Tests [MySQL]
needs: ['javascript', 'html', 'pre-commit'] needs: ['javascript', 'html', 'pre-commit']
runs-on: ubuntu-latest runs-on: ${{ runner_ref }}
if: github.event_name == 'push' if: github.event_name == 'push'
env: env: