FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Skip tests failing on Python 3.12 pending greenlet support by hugovk · Pull Request #264 · python/pyperformance · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .yml  (1) All 2 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
19 changes: 6 additions & 13 deletions .github/workflows/main.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: test

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
Comment thread
pradyunsg marked this conversation as resolved.
# Midnight UTC:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:

Expand All @@ -19,28 +18,22 @@ jobs:
matrix:
# Test all supported versions on Ubuntu:
os: [ubuntu-latest]
python: ["3.7", "3.8", "3.9", "3.10", 3.11-dev, 3.12-dev]
python: [pypy3.8, pypy3.9, "3.7", "3.8", "3.9", "3.10", 3.11-dev, 3.12-dev]
include:
# Also test PyPy, macOS, and Windows:
- os: ubuntu-latest
python: pypy-3.9
- os: ubuntu-latest
python: pypy-3.8
- os: ubuntu-latest
python: pypy-3.7
# Also test macOS and Windows:
- os: macos-latest
python: "3.10"
- os: windows-latest
python: "3.10"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
if: "!endsWith(matrix.python, '-dev')"
with:
python-version: ${{ matrix.python }}
- name: Set up Python ${{ matrix.python }} using deadsnakes
uses: deadsnakes/action@v2.1.1
uses: deadsnakes/action@v3.0.0
if: "endsWith(matrix.python, '-dev')"
with:
python-version: ${{ matrix.python }}
Expand Down
9 changes: 9 additions & 0 deletions pyperformance/tests/test_commands.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
import pyperformance
from pyperformance import tests

# Skip tests failing on Python 3.12
# pending https://github.com/python-greenlet/greenlet/issues/323
try:
import greenlet
except ImportError:
greenlet = None


class FullStackTests(tests.Functional, unittest.TestCase):

Expand Down Expand Up @@ -92,6 +99,7 @@ def test_list_groups(self):
###################################
# venv

@unittest.skipUnless(greenlet, "requires greenlet")
def test_venv(self):
# XXX Capture and check the output.
root = self.resolve_tmp('venv', unique=True)
Expand Down Expand Up @@ -140,6 +148,7 @@ def expect_failure(*args):
###################################
# run

@unittest.skipUnless(greenlet, "requires greenlet")
def test_run_and_show(self):
filename = self.resolve_tmp('bench.json')

Expand Down

Back | FazBrowse Home | New Git URL