Skip to content

Commit 1a71201

Browse files
isabelizimmwesm
authored andcommitted
Merged PR posit-dev/positron-python#99: add matrix of python versions to positron-ci.yml
Merge pull request #99 from posit-dev/gh-actions-matrix -------------------- Commit message for posit-dev/positron-python@72b465d: linting -------------------- Commit message for posit-dev/positron-python@a1c46fd: import annotations from future This allows typing annotations from future Python versions to be used in older versions. Specifically, this solves the pyright issue: subscript for class "set" will generate runtime exception; enclose type annotation in quotes in Python 3.8. -------------------- Commit message for posit-dev/positron-python@c2fbc47: move to matrix across os and python versions -------------------- Commit message for posit-dev/positron-python@dbe9748: remove all testing for 3.7 -------------------- Commit message for posit-dev/positron-python@48bc5f2: add multiple OSes to CI matrix -------------------- Commit message for posit-dev/positron-python@3c56b37: add matrix of python versions to positron-ci.yml now testing on python 3.8, 3.9, 3.10, 3.11 for ubuntu-latest Authored-by: Isabel Zimmerman <[email protected]> Signed-off-by: Isabel Zimmerman <[email protected]>
1 parent 49ea6a2 commit 1a71201

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

extensions/positron-python/.github/workflows/positron-ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,26 @@ jobs:
5555

5656
python-tests:
5757
name: Test Python
58-
runs-on: ubuntu-latest
58+
runs-on: ${{ matrix.os }}
59+
strategy:
60+
matrix:
61+
include:
62+
- os: 'ubuntu-latest'
63+
python-version: '3.8'
64+
- os: 'macos-latest'
65+
python-version: '3.9'
66+
- os: 'windows-latest'
67+
python-version: '3.10'
68+
- os: 'ubuntu-latest'
69+
python-version: '3.11'
5970
steps:
6071
- name: Checkout
6172
uses: actions/checkout@v3
6273

63-
- name: Use Python ${{ env.PYTHON_VERSION }}
74+
- name: Use Python ${{ matrix.python-version }}
6475
uses: actions/setup-python@v4
6576
with:
66-
python-version: ${{ env.PYTHON_VERSION }}
77+
python-version: ${{ matrix.python-version }}
6778
cache: 'pip'
6879

6980
- name: Install Python requirements

extensions/positron-python/pythonFiles/tests/test_positron_environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#
22
# Copyright (C) 2023 Posit Software, PBC. All rights reserved.
33
#
4+
from __future__ import annotations
45

56
import inspect
67
import math

0 commit comments

Comments
 (0)