From ea8f4e6097aee37e801335668fc71e7e265bc4f0 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 31 Aug 2024 14:06:20 +0100 Subject: [PATCH 1/2] Extract Python version to a file to simplify cross-branch builds Also makes this more easily integrate with other tooling. --- .github/workflows/lint.yml | 4 ++-- .github/workflows/render.yml | 4 ++-- .python-version | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .python-version diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4679cc8..a98e26a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,10 +13,10 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version-file: '.python-version' - name: Lint filenames run: python ./scripts/lint-filenames.py diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index 1cd00e4..f32d907 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -14,10 +14,10 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.11 + python-version-file: '.python-version' - name: Install dependencies run: bash ./scripts/setup.sh diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..2c07333 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11 From 59e0fd34791565b23e822d2e04cba0007a20336d Mon Sep 17 00:00:00 2001 From: Peter Law Date: Sat, 31 Aug 2024 14:09:12 +0100 Subject: [PATCH 2/2] Extract Node version to a file to simplify cross-branch builds Also makes this more easily integrate with other tooling. --- .github/workflows/render.yml | 2 +- .github/workflows/spellcheck.yml | 2 +- .node-version | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/render.yml b/.github/workflows/render.yml index f32d907..f2e6293 100644 --- a/.github/workflows/render.yml +++ b/.github/workflows/render.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '18' + node-version-file: '.node-version' - name: Install run: yarn install diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index b213b6b..0f877e8 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '18' + node-version-file: '.node-version' - name: Install run: yarn install diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +18