-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5c01cb
commit da11c07
Showing
6 changed files
with
132 additions
and
137 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 |
---|---|---|
|
@@ -2,45 +2,44 @@ name: Functional Legacy | |
|
||
on: | ||
push: | ||
branches: [ main, 4.2, 3.4 ] | ||
branches: [main, 4.2, 3.4] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
# runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.6" ] | ||
os: [ "ubuntu-20.04" ] | ||
python-version: ["3.6"] | ||
os: ["ubuntu-20.04"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: run python version | ||
run: | | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
pip install --no-cache-dir -r requirements.txt | ||
pip install psutil | ||
- name: change ownership to exa user | ||
run : | | ||
echo "EXABGP_DAEMON_USER=$(whoami)" >> $GITHUB_ENV | ||
- name: Python 3.6 Coverage | ||
run: | | ||
./qa/bin/functional-3.6 all | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: run python version | ||
run: | | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
pip install --no-cache-dir -r requirements.txt | ||
pip install psutil | ||
- name: change ownership to exa user | ||
run: | | ||
echo "EXABGP_DAEMON_USER=$(whoami)" >> $GITHUB_ENV | ||
- name: Python 3.6 Coverage | ||
run: | | ||
./qa/bin/functional-3.6 all |
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 |
---|---|---|
|
@@ -2,49 +2,48 @@ name: Functional Testing | |
|
||
on: | ||
push: | ||
branches: [ main, 4.2, 3.4 ] | ||
branches: [main, 4.2, 3.4] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
# runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | ||
os: [ "ubuntu-latest" ] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
os: ["ubuntu-latest"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: run python version | ||
run: | | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
pip install --no-cache-dir -r requirements.txt | ||
pip install psutil | ||
- name: Configuration | ||
run: | | ||
./qa/bin/functional parsing | ||
- name: Functional | ||
run: | | ||
./qa/bin/functional encoding | ||
- name: Decoding | ||
run: | | ||
./qa/bin/functional decoding | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: run python version | ||
run: | | ||
python --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --no-cache-dir --upgrade pip | ||
pip install --no-cache-dir -r requirements.txt | ||
pip install psutil | ||
- name: Configuration | ||
run: | | ||
./qa/bin/functional parsing | ||
- name: Functional | ||
run: | | ||
./qa/bin/functional encoding | ||
- name: Decoding | ||
run: | | ||
./qa/bin/functional decoding |
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 |
---|---|---|
|
@@ -2,38 +2,37 @@ name: Linting | |
|
||
on: | ||
push: | ||
branches: [ main, 4.2, 3.4 ] | ||
branches: [main, 4.2, 3.4] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
# runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.12" ] | ||
os: [ "ubuntu-latest" ] | ||
python-version: ["3.12"] | ||
os: ["ubuntu-latest"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install psutil | ||
pip install flake8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install psutil | ||
pip install flake8 | ||
- name: flake8 | ||
run: | | ||
flake8 . --exclude src/exabgp/vendoring/ --exclude build/ --exclude site-packages --count --select=E9,F63,F7,F82 --show-source --statistics | ||
- name: flake8 | ||
run: | | ||
flake8 . --exclude src/exabgp/vendoring/ --exclude build/ --exclude site-packages --count --select=E9,F63,F7,F82 --show-source --statistics |
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,7 +3,7 @@ name: Publish packages | |
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
- "v*" | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -22,7 +22,6 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: 3.8 | ||
|
||
# - name: Build | ||
# run: | | ||
# make init build | ||
|
@@ -31,4 +30,4 @@ jobs: | |
# uses: pypa/gh-action-pypi-publish@master | ||
# with: | ||
# user: __token__ | ||
# password: ${{ secrets.GH_ACTIONS_EXABGP }} | ||
# password: ${{ secrets.GH_ACTIONS_EXABGP }} |
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 |
---|---|---|
|
@@ -5,37 +5,36 @@ name: Unit Testing | |
|
||
on: | ||
push: | ||
branches: [ main, 4.2, 3.4 ] | ||
branches: [main, 4.2, 3.4] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
# runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ] | ||
os: [ "ubuntu-latest" ] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
os: ["ubuntu-latest"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest pytest-cov | ||
- name: pytest | ||
run: | | ||
env PYTHONPATH=src exabgp_log_enable=false pytest --cov --cov-reset ./tests/*_test.py | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install pytest pytest-cov | ||
- name: pytest | ||
run: | | ||
env PYTHONPATH=src exabgp_log_enable=false pytest --cov --cov-reset ./tests/*_test.py |