-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from Cskorpion/tests-in-github-ci
Tests in GitHub CI
- Loading branch information
Showing
11 changed files
with
121 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: [master, unstuck-vmprof] | ||
pull_request: | ||
branches: [master, unstuck-vmprof] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
pull-requests: write | ||
name: ${{ matrix.os }} - ${{ matrix.python }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Test all supported versions on Ubuntu: | ||
os: [ubuntu-latest] | ||
python: ["3.9", "3.10", "pypy-3.9"] | ||
experimental: [false] | ||
# include: | ||
# - os: macos-latest | ||
# python: "3.10" | ||
# experimental: false | ||
# - os: windows-latest | ||
# python: "3.10" | ||
# experimental: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install libunwind | ||
run: | | ||
sudo apt install -y libunwind-dev | ||
pkg-config libunwind --cflags --libs-only-l | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
python -m pip install -e . | ||
python -m pip install -r test_requirements.txt | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Run Tests | ||
id: vmprof | ||
run: python -m pytest -v vmprof jitlog | ||
|
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -3,5 +3,7 @@ envlist = py27, py34, py35, pypy | |
|
||
|
||
[testenv] | ||
deps=pytest | ||
deps= | ||
pytest | ||
cffi | ||
commands=py.test vmprof/test/ |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.