-
-
Notifications
You must be signed in to change notification settings - Fork 276
37 lines (34 loc) · 1.2 KB
/
release-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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/checkout@v4.1.7
- name: Set up Python 3.9
id: python
uses: actions/setup-python@v5.1.1
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
run: |
python -m pip install pip --upgrade
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