Skip to content

Release tests

Release tests #20

Workflow file for this run

name: Release tests
on: workflow_dispatch
permissions:
contents: read
jobs:
virtualenv-15-windows-test:
# Regression test added in https://github.com/pylint-dev/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/[email protected]
- name: Set up Python 3.9
id: python
uses: actions/[email protected]
with:
# virtualenv 15.1.0 cannot be installed on Python 3.10+
python-version: 3.9
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- name: Create Python virtual environment with virtualenv==15.1.0
env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
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