mirror of
https://github.com/hacs/default.git
synced 2025-07-22 12:00:41 +00:00
Add setup python step
This commit is contained in:
20
.github/workflows/checks.yml
vendored
20
.github/workflows/checks.yml
vendored
@ -35,6 +35,11 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5.2.0
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
|
||||
- name: Clone origin
|
||||
run: git clone --depth 1 https://github.com/hacs/default /tmp/repositories/default
|
||||
|
||||
@ -62,6 +67,13 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5.2.0
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
cache: "pip"
|
||||
cache-dependency-path: "requirements.txt"
|
||||
|
||||
- name: Install dependencies if needed
|
||||
run: scripts/setup
|
||||
|
||||
@ -78,6 +90,14 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5.2.0
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
cache: "pip"
|
||||
cache-dependency-path: "requirements.txt"
|
||||
|
||||
|
||||
- name: Install dependencies if needed
|
||||
run: scripts/setup
|
||||
|
||||
|
5
.github/workflows/lint.yml
vendored
5
.github/workflows/lint.yml
vendored
@ -54,5 +54,10 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4.1.7
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5.2.0
|
||||
with:
|
||||
python-version-file: ".python-version"
|
||||
|
||||
- name: Check lists
|
||||
run: python3 scripts/is_sorted.py
|
||||
|
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
||||
3.10
|
Reference in New Issue
Block a user