-
Notifications
You must be signed in to change notification settings - Fork 14
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 #115 from Perfexionists/typing
Add typing annotation to Perun
- Loading branch information
Showing
127 changed files
with
3,806 additions
and
2,307 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Setup Environment | ||
description: Performs setup of Perun, Python and its dependencies | ||
inputs: | ||
python-version: | ||
description: 'Python version to run' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: 'pip' | ||
|
||
- name: Install Unix dependencies | ||
shell: sh | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get install time libunwind8-dev g++-9 gcc-9 git | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 | ||
- name: Initialize Git | ||
shell: sh | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Perun Allmighty" | ||
- name: Upgrade pip and setuptools dependencies | ||
shell: sh | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
- name: Install Tox | ||
shell: sh | ||
run: | | ||
pip install tox |
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 |
---|---|---|
|
@@ -14,34 +14,15 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
- name: Setup Python, Ubuntu and Python environment | ||
uses: ./.github/workflows/actions/setup | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
|
||
- name: Install Unix dependencies | ||
run: | | ||
sudo apt-get install time libunwind8-dev g++-9 gcc-9 git | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 | ||
- name: Initialize Git | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Perun Allmighty" | ||
- name: Upgrade pip and setuptools dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
- name: Install Tox | ||
run: | | ||
pip install tox | ||
|
||
- name: Execute tests for Python ${{ matrix.python-version }} using Tox | ||
run: tox -e py | ||
|
@@ -54,4 +35,23 @@ jobs: | |
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: coverage-${{ matrix.python-version }} | ||
verbose: true | ||
verbose: true | ||
|
||
typing: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python, Ubuntu and Python environment | ||
uses: ./.github/workflows/actions/setup | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Check type correctness for Python ${{ matrix.python-version }} using Tox | ||
run: | | ||
tox -e typing |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ignore: | ||
- "perun/collect/trace" | ||
- "perun/thirdparty" | ||
- "tests/test_tracer" | ||
|
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.