Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ python:
- "3.9"

# Scripts to run at install stage
install: ./configure --dev
install: |
./configure --dev
source venv/bin/activate

# Scripts to run at script stage
script: venv/bin/pytest
script: pytest
24 changes: 18 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,56 @@ jobs:
image_name: ubuntu-18.04
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv/bin/pytest -n 2 -vvs
all: |
source venv/bin/activate
pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: ubuntu20_cpython
image_name: ubuntu-20.04
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv/bin/pytest -n 2 -vvs
all: |
source venv/bin/activate
pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos1015_cpython
image_name: macos-10.15
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv/bin/pytest -n 2 -vvs
all: |
source venv/bin/activate
pytest -n 2 -vvs

- template: etc/ci/azure-posix.yml
parameters:
job_name: macos11_cpython
image_name: macos-11
python_versions: ['3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv/bin/pytest -n 2 -vvs
all: |
source venv/bin/activate
pytest -n 2 -vvs

- template: etc/ci/azure-win.yml
parameters:
job_name: win2019_cpython
image_name: windows-2019
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv\Scripts\pytest -n 2 -vvs
all: |
call venv\Scripts\activate.bat
pytest -n 2 -vvs

- template: etc/ci/azure-win.yml
parameters:
job_name: win2022_cpython
image_name: windows-2022
python_versions: ['3.7', '3.8', '3.9', '3.10']
test_suites:
all: venv\Scripts\pytest -n 2 -vvs
all: |
call venv\Scripts\activate.bat
pytest -n 2 -vvs
2 changes: 1 addition & 1 deletion tests/test_codestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class BaseTests(unittest.TestCase):
def test_codestyle(self):
args = "venv/bin/black --check -l 100 setup.py src tests"
args = "black --check -l 100 setup.py src tests"
try:
subprocess.check_output(args.split())
except subprocess.CalledProcessError as e:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_skeleton_codestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_skeleton_codestyle(self):
if setup_cfg["metadata"]["name"] != "skeleton":
return

args = "venv/bin/black --check -l 100 setup.py etc tests"
args = "black --check -l 100 setup.py etc tests"
try:
subprocess.check_output(args.split())
except subprocess.CalledProcessError as e:
Expand Down