fix: Revert make-fetch-happen on v9 #699
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
# TODO: Line 48, enable pytest --doctest-modules | |
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
- release/v* | |
pull_request: | |
branches: | |
- main | |
- release/v* | |
jobs: | |
Lint_Python: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: pip install --user ruff | |
- run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="PLC1901,S101,UP031" --target-version=py37 . | |
Engines: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install Dependencies | |
run: | | |
npm install --no-progress | |
- name: Check Engines | |
# Override the actual engines being checked with a slight modification, changing | |
# ^14.13 to ^14.15. This is to get this test in place to stop future regressions | |
# but there are already engines in the dependencies that conflict. | |
run: node .github/scripts/check-engines.js "^12.13 || ^14.15 || >=16" | |
Tests: | |
strategy: | |
fail-fast: false | |
max-parallel: 15 | |
matrix: | |
node: [16.x, 18.x, 20.x] | |
python: ["3.8", "3.11"] | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Use Python ${{ matrix.python }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
env: | |
PYTHON_VERSION: ${{ matrix.python }} # Why do this? | |
- name: Install Dependencies | |
run: | | |
npm install --no-progress | |
pip install pytest | |
- name: Set Windows environment | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
echo 'GYP_MSVS_VERSION=2015' >> $Env:GITHUB_ENV | |
echo 'GYP_MSVS_OVERRIDE_PATH=C:\\Dummy' >> $Env:GITHUB_ENV | |
- name: Run Python tests | |
run: python -m pytest | |
# - name: Run doctests with pytest | |
# run: python -m pytest --doctest-modules | |
- name: Environment Information | |
run: npx envinfo | |
- name: Run Node tests | |
run: npm test |