From f371ea878c277000792e59658466caee012829c2 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 19 Jan 2023 21:18:41 +0000 Subject: [PATCH 1/3] ci: test NumPy < 1.17 --- .github/workflows/build-test.yml | 2 +- .github/workflows/prepare-release.yml | 61 +++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/prepare-release.yml diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 7adf9e5891..5ce00681d0 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -192,7 +192,7 @@ jobs: - "numpy" include: - python-version: '3.7' - numpy-package: "numpy>=1.17" + numpy-package: "numpy<1.17" runs-on: ubuntu-20.04 diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml new file mode 100644 index 0000000000..c42434252f --- /dev/null +++ b/.github/workflows/prepare-release.yml @@ -0,0 +1,61 @@ +name: Deploy + +on: + workflow_dispatch: + inputs: + version: + type: string + description: New version + +jobs: + validate-version: + name: Validate version string + runs-on: ubuntu-latest + + steps: + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Check version + run: | + import packaging.version + packaging.version.parse("${{ inputs.version }}") + shell: python + + set-pyproject-version: + name: "Set pyproject version" + runs-on: ubuntu-latest + needs: [validate-version] + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Check awkward-cpp version matches requirement + run: | + sed -E r"s/^version\s*=\s*[\"'](.*)[\"']\s*$/version = \"${{ inputs.version }}\"/" + + set-docs-version: + name: "Set docs version" + runs-on: ubuntu-latest + needs: [validate-version] + steps: + - uses: actions/checkout@v3 + with: + submodules: true + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Check version + run: | + import json + with open("docs/switcher.json") as f: + data = json.load(f) + data.append({ + "version": "${{ }}", + "url": "https://awkward-array.org/2.0/" + }) + with open("docs/switcher.json", "w") as f: + json.dump(data, f) + shell: python From 48dcda4205e6994d4f38c59d1656c89ae0ee7c47 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 19 Jan 2023 21:20:00 +0000 Subject: [PATCH 2/3] chore: drop old file --- .github/workflows/prepare-release.yml | 61 --------------------------- 1 file changed, 61 deletions(-) delete mode 100644 .github/workflows/prepare-release.yml diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml deleted file mode 100644 index c42434252f..0000000000 --- a/.github/workflows/prepare-release.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Deploy - -on: - workflow_dispatch: - inputs: - version: - type: string - description: New version - -jobs: - validate-version: - name: Validate version string - runs-on: ubuntu-latest - - steps: - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Check version - run: | - import packaging.version - packaging.version.parse("${{ inputs.version }}") - shell: python - - set-pyproject-version: - name: "Set pyproject version" - runs-on: ubuntu-latest - needs: [validate-version] - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - name: Check awkward-cpp version matches requirement - run: | - sed -E r"s/^version\s*=\s*[\"'](.*)[\"']\s*$/version = \"${{ inputs.version }}\"/" - - set-docs-version: - name: "Set docs version" - runs-on: ubuntu-latest - needs: [validate-version] - steps: - - uses: actions/checkout@v3 - with: - submodules: true - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - name: Check version - run: | - import json - with open("docs/switcher.json") as f: - data = json.load(f) - data.append({ - "version": "${{ }}", - "url": "https://awkward-array.org/2.0/" - }) - with open("docs/switcher.json", "w") as f: - json.dump(data, f) - shell: python From 617d659d07d80482dea1987f3644149226942d96 Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Thu, 19 Jan 2023 21:35:57 +0000 Subject: [PATCH 3/3] ci: use 1.14.5 explicitly --- .github/workflows/build-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 5ce00681d0..3357481b22 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -192,7 +192,7 @@ jobs: - "numpy" include: - python-version: '3.7' - numpy-package: "numpy<1.17" + numpy-package: "numpy==1.14.5" runs-on: ubuntu-20.04