From 619c5ae6a28f4115a5628a63c32f9e601109ccb6 Mon Sep 17 00:00:00 2001 From: c01o Date: Fri, 27 Oct 2023 07:18:46 +0900 Subject: [PATCH 1/3] Upgrade test python version `pyproject.toml` says the minimum requirement is python 3.9, no need to test on 3.7. Actually `setuptools 68.1.0+` requires `python 3.8+`. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50680030..c2c3336a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04, macos-latest, windows-latest] - python: [3.7] + python: [3.9] steps: - uses: actions/checkout@v2 From bb1646ddc1dd6617f2a19c8909a861e3766d2b83 Mon Sep 17 00:00:00 2001 From: c01o Date: Fri, 27 Oct 2023 07:21:55 +0900 Subject: [PATCH 2/3] Fix python-tests dependency Starting from b6113cc, it requires `build` package to be built. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c2c3336a..b19d9128 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,7 @@ jobs: - name: Install pip dependencies run: | - python -m pip install --upgrade pip setuptools wheel pytest bottle + python -m pip install --upgrade pip setuptools wheel pytest bottle build ./bin/build_pip.sh python -m pip install . From 3b005b5faf31bc88cdeec4cd240f112e7ecda75a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 30 Oct 2023 18:48:10 -0700 Subject: [PATCH 3/3] Add PDM --- .github/workflows/test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b19d9128..1a30133a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,15 +24,18 @@ jobs: ### Setup Python & JS Languages - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} architecture: x64 - name: Set up Node JS 14.7.0 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 14.7.0 + node-version: 18.12.0 + + - name: Setup PDM + uses: pdm-project/setup-pdm@v3 ### Install Python & JS Dependencies - name: Get pip cache dir @@ -53,7 +56,7 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel pytest bottle build ./bin/build_pip.sh - python -m pip install . + pdm install - name: Get npm cache dir id: npm-cache