<commit_before>name: Release tests

on: workflow_dispatch

env:
  DEFAULT_PYTHON: "3.10"

permissions:
  contents: read

jobs:
  virtualenv-15-windows-test:
    # Regression test added in https://github.com/PyCQA/astroid/pull/1386
    name: Regression test for virtualenv==15.1.0 on Windows
    runs-on: windows-latest
    timeout-minutes: 5
    steps:
      - name: Check out code from GitHub
        uses: actions/checkout@v3.1.0
      - name: Set up Python
        id: python
        uses: actions/setup-python@v4.3.0
        with:
          python-version: ${{ env.DEFAULT_PYTHON }}
      - name: Create Python virtual environment with virtualenv==15.1.0
        run: |
          python -m pip install virtualenv==15.1.0
          python -m virtualenv venv2
          . venv2\scripts\activate
          python -m pip install pylint
          python -m pip install -e .
      - name: Test no import-error from distutils.util
        run: |
          . venv2\scripts\activate
          echo "import distutils.util  # pylint: disable=unused-import" > test.py
          pylint test.py<commit_msg>Use Python 3.9 for virtualenv-15-windows-test job (#1857)<commit_after>name: Release tests

on: workflow_dispatch

env:
  DEFAULT_PYTHON: "3.10"

permissions:
  contents: read

jobs:
  virtualenv-15-windows-test:
    # Regression test added in https://github.com/PyCQA/astroid/pull/1386
    name: Regression test for virtualenv==15.1.0 on Windows
    runs-on: windows-latest
    timeout-minutes: 5
    steps:
      - name: Check out code from GitHub
        uses: actions/checkout@v3.1.0
      - name: Set up Python
        id: python
        uses: actions/setup-python@v4.3.0
        with:
          # virtualenv 15.1.0 cannot be installed on Python 3.10+
          python-version: 3.9
      - name: Create Python virtual environment with virtualenv==15.1.0
        run: |
          python -m pip install virtualenv==15.1.0
          python -m virtualenv venv2
          . venv2\scripts\activate
          python -m pip install pylint
          python -m pip install -e .
      - name: Test no import-error from distutils.util
        run: |
          . venv2\scripts\activate
          echo "import distutils.util  # pylint: disable=unused-import" > test.py
          pylint test.py
{'fraction_non_alphanumeric': 0.0925438596491228, 'fraction_numerical': 0.03464912280701754, 'mean_word_length': 2.1203830369357046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3085587', 'n_tokens_mistral': 745, 'n_tokens_neox': 706, 'n_words': 200}