-
-
Notifications
You must be signed in to change notification settings - Fork 122
67 lines (56 loc) · 1.81 KB
/
pydevd-release.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: PyDev.Debugger Release
# on:
# push:
# branches:
# - "release-pydev-debugger-test"
# tags:
# - "pydev_debugger_*"
env:
DISPLAY: ":99"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python --version
- name: Install common Python deps
run: |
pip install --upgrade pip
pip install wheel "cython>3" setuptools psutil twine --no-warn-script-location
- name: Build cython
env:
PYTHONPATH: .
PYDEVD_USE_CYTHON: yes
run: python build_tools/build.py
- name: Check cython unchanged
env:
PYTHONPATH: .
PYDEVD_USE_CYTHON: yes
run: python build_tools/check_no_git_modifications.py
- name: Create sdist
run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v3
with:
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
path: dist/*
- name: Upload to PyPI .whl
run: twine upload dist/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_KEY }}
- name: Upload to PyPI .tar.gz
if: ${{ (matrix.os == 'windows-latest') && (matrix.python-version == '3.9') }}
run: twine upload dist/*.tar.gz
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_KEY }}