Skip to content

Commit d3bdaa7

Browse files
committed
tests.yml: Clean up deprecation warnings
1 parent 5e07e11 commit d3bdaa7

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ env:
1010
PYTHONDEVMODE: 1
1111
PYTHONFAULTHANDLER: 1
1212
PIP_UPGRADE_STRATEGY: eager
13-
# Don't get warnings about Python 2 support being deprecated. We
14-
# know. The env var works for pip 20.
15-
PIP_NO_PYTHON_VERSION_WARNING: 1
1613
PIP_NO_WARN_SCRIPT_LOCATION: 1
1714
# Uploading built wheels for releases.
1815
# TWINE_PASSWORD is encrypted and stored directly in the
@@ -26,22 +23,9 @@ jobs:
2623
strategy:
2724
matrix:
2825
python-version: [3.9, "3.10", "3.11", "3.12", "3.13", "3.14.0-alpha.7"]
29-
os: [ubuntu-latest]
30-
include:
31-
# Needs to be all supported Python versions, they upload the built
32-
# wheels for releases.
33-
- os: macos-latest
34-
python-version: 3.9
35-
- os: macos-latest
36-
python-version: "3.10"
37-
- os: macos-latest
38-
python-version: "3.11"
39-
- os: macos-latest
40-
python-version: "3.12"
41-
- os: macos-latest
42-
python-version: "3.13"
43-
- os: macos-latest
44-
python-version: "3.14.0-alpha.7"
26+
# Recall the macOS builds upload built wheels so all supported versions
27+
# need to run on mac.
28+
os: [ubuntu-latest, macos-latest]
4529
steps:
4630
- uses: actions/checkout@v4
4731
- name: Set up Python
@@ -148,17 +132,11 @@ jobs:
148132
run: |
149133
python -m pip install -U pip
150134
python -m pip install -U setuptools wheel
151-
# Set the `CODEQL-PYTHON` environment variable to the Python executable
152-
# that includes the dependencies
153-
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
154135
# Initializes the CodeQL tools for scanning.
155136
- name: Initialize CodeQL
156137
uses: github/codeql-action/init@v3
157138
with:
158139
languages: python, cpp
159-
# Override the default behavior so that the action doesn't attempt
160-
# to auto-install Python dependencies
161-
setup-python-dependencies: false
162140
- name: Install greenlet
163141
run: |
164142
python setup.py build
@@ -205,7 +183,7 @@ jobs:
205183
path: wheelhouse/*whl
206184
name: ${{ matrix.image }}_wheels.zip
207185
- name: Publish package to PyPI
208-
uses: pypa/gh-action-pypi-publish@v1.12.2
186+
uses: pypa/gh-action-pypi-publish@v1.12.4
209187
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
210188
with:
211189
user: __token__

0 commit comments

Comments
 (0)