forked from pylint-dev/astroid
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.01 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
name: Release tests
on: workflow_dispatch
env:
DEFAULT_PYTHON: 3.8
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/[email protected]
- name: Set up Python
id: python
uses: actions/[email protected]
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