diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7d45190..8ea6d2f 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 792725d..5ed99b7 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..7c7a975 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.10 \ No newline at end of file