Skip to content

Commit

Permalink
Change 3.10-dev to 3.10, and make all Python versions strings (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed Dec 16, 2021
1 parent df08004 commit 5721494
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.8'
- name: Install graphviz
run: |
sudo apt-get update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.8'
- name: Install necessary Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.8'
- name: Install Python packages needed for build and upload
run: |
python -m pip install build twine
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.8]
python-version: ['3.6', '3.8']

env:
ETS_TOOLKIT: qt
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, windows-latest]
python-version: [3.8]
python-version: ['3.8']

env:
ETS_TOOLKIT: wx
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.8'
- name: Install necessary Python packages
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test-from-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

runs-on: ${{ matrix.os }}

Expand All @@ -38,12 +38,12 @@ jobs:
- name: Install package and test dependencies from PyPI sdist (with PySide2)
run: |
python -m pip install --no-binary traits-futures traits-futures[pyside2]
if: ${{ matrix.python-version != '3.10-dev' }}
if: ${{ matrix.python-version != '3.10' }}
- name: Install package and test dependencies from PyPI sdist (no PySide2)
# PySide2 does not yet work on Python 3.10; test without it.
run: |
python -m pip install --no-binary traits-futures traits-futures
if: ${{ matrix.python-version == '3.10-dev' }}
if: ${{ matrix.python-version == '3.10' }}
- name: Create clean test directory
run: |
mkdir testdir
Expand All @@ -57,7 +57,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

runs-on: ${{ matrix.os }}

Expand All @@ -84,12 +84,12 @@ jobs:
- name: Install package and test dependencies from PyPI wheel (with PySide2)
run: |
python -m pip install --only-binary traits-futures traits-futures[pyside2]
if: ${{ matrix.python-version != '3.10-dev' }}
if: ${{ matrix.python-version != '3.10' }}
- name: Install package and test dependencies from PyPI wheel (no PySide2)
# PySide2 does not yet work on Python 3.10; test without it.
run: |
python -m pip install --only-binary traits-futures traits-futures
if: ${{ matrix.python-version == '3.10-dev' }}
if: ${{ matrix.python-version == '3.10' }}
- name: Create clean test directory
run: |
mkdir testdir
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly-scheduled-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']

runs-on: ${{ matrix.os }}

Expand All @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6, 3.8, 3.9]
python-version: ['3.6', '3.8', '3.9']

runs-on: ${{ matrix.os }}

Expand Down

0 comments on commit 5721494

Please sign in to comment.