Skip to content

Commit

Permalink
Merge pull request #466 from cclauss/patch-8
Browse files Browse the repository at this point in the history
GitHub Actions: python-version: ["2.7", "3.6", "3.10"]
  • Loading branch information
bennr01 authored Jan 30, 2023
2 parents 7d378c3 + 7000a21 commit 56db9b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/check-code-and-run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Check code and run tests

on: [push]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.6", "3.8"]
python-version: ["2.7", "3.6", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -25,7 +30,8 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
- name: Running tests
run: |
py.test --version
pytest --version
# make install test work...
export PYTHONPATH=$(python -m site --user-site)
pytest tests/ --ignore=tests/system/data/ --showlocals --verbose --show-capture=all --log-level=debug
2 changes: 1 addition & 1 deletion tests/pip/test_pip.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def test_install_pypi_simple_2(self):
self.logger.info("sys.path = " + str(sys.path))
raise AssertionError("Could not import installed module: " + repr(e))

# @expected_failure_on_py3
@requires_network
@expected_failure_on_py3
def test_install_pypi_complex_1(self):
"""test 'pip install <pypi_package>' with a complex package."""
output = self.run_command("pip --verbose install twisted", exitcode=0)
Expand Down

0 comments on commit 56db9b1

Please sign in to comment.