diff --git a/.github/workflows/any-pr.yml b/.github/workflows/any-pr.yml index 3831aa5..adaff6b 100644 --- a/.github/workflows/any-pr.yml +++ b/.github/workflows/any-pr.yml @@ -21,12 +21,10 @@ jobs: # Logging python version for future debugging - run: python -V - # Required as macos-14 defaults to use python 3.12, this causes issues with node-gyp currently - # 1. node-gyp depends on distutils package which has now been removed in python version 3.12 can use 'pip install setuptools' to fix this - # 2. Node@14 will error with -> Node gyp ERR - invalid mode: 'rU' while trying to load binding.gyp Where 'U' option is now deprecated - uses: actions/setup-python@v4 with: - python-version: "3.10.11" + python-version: "3.12" + - run: pip install setuptools - run: yarn install --frozen-lockfile - run: yarn lint diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index 7e3b1ae..a90f366 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -15,6 +15,10 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 18.x + - uses: actions/setup-python@v4 + with: + python-version: "3.12" + - run: pip install setuptools - run: yarn - run: yarn install --frozen-lockfile - run: yarn lint diff --git a/.github/workflows/push-release.yml b/.github/workflows/push-release.yml index f89ec63..ccbbe56 100644 --- a/.github/workflows/push-release.yml +++ b/.github/workflows/push-release.yml @@ -41,6 +41,10 @@ jobs: - uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - uses: actions/setup-python@v4 + with: + python-version: "3.12" + - run: pip install setuptools - run: yarn - run: yarn install --frozen-lockfile - run: yarn lint