-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
113 changed files
with
5,235 additions
and
2,889 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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
[bumpversion] | ||
current_version = 0.0.1 | ||
current_version = 1.0.0 | ||
tag_name = {new_version} | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:README.md] | ||
[bumpversion:file:README.rst] | ||
|
||
[bumpversion:file:agoras/__init__.py] |
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,2 +1,2 @@ | ||
[run] | ||
source = sacli | ||
source = agoras |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Functional tests | ||
|
||
on: | ||
schedule: | ||
- cron: '00 6 * * 2' | ||
|
||
jobs: | ||
functional: | ||
name: Functional tests | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
network: | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.10 | ||
- name: Installing dependencies | ||
run: | | ||
sudo pip install -r requirements.txt -r requirements-dev.txt | ||
- run: | | ||
bash test.sh ${{ matrix.network }} |
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 |
---|---|---|
|
@@ -11,35 +11,29 @@ on: | |
- develop | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/sacli' | ||
unit: | ||
name: Unit tests | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
include: | ||
- python-version: "3.8" | ||
toxenv: "py38" | ||
- python-version: "3.9" | ||
toxenv: "py39" | ||
- python-version: "3.10" | ||
toxenv: "py310" | ||
- python-version: "3.11.0-alpha.5" | ||
- python-version: "3.11" | ||
toxenv: "py311" | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
fetch-depth: 0 | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v4.7.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Installing dependencies | ||
run: | | ||
sudo apt-get install libxml2-dev libxslt-dev | ||
pip install -r requirements.txt -r requirements-dev.txt | ||
sudo pip install -r requirements.txt -r requirements-dev.txt | ||
- name: Measuring coverage | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
|
@@ -54,27 +48,11 @@ jobs: | |
flag-name: run-py${{ matrix.python-version }} | ||
path-to-lcov: ./.lcov | ||
parallel: true | ||
- name: Functional test | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
run: | | ||
if [ "${TOXENV}" == "py311" ]; then | ||
PYTHON_VERSION="3.11" | ||
fi | ||
docker run \ | ||
-v ${PWD}:${PWD} \ | ||
-w ${PWD} \ | ||
dockershelf/python:${PYTHON_VERSION} \ | ||
bash -c "pip install . && \ | ||
cd ${PWD}/tests/cases/debian && \ | ||
sacli install" | ||
|
||
finish: | ||
name: Finish | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/sacli' | ||
needs: build | ||
runs-on: ubuntu-22.04 | ||
needs: unit | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@master | ||
|
@@ -84,43 +62,23 @@ jobs: | |
|
||
approve: | ||
name: Approve pull request | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/sacli' | ||
runs-on: ubuntu-22.04 | ||
needs: finish | ||
steps: | ||
- name: Approve | ||
uses: hmarr/[email protected] | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | ||
- name: Approve | ||
uses: hmarr/[email protected] | ||
if: github.actor == 'LuisAlejandro' | ||
uses: hmarr/[email protected] | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
github-token: "${{ github.actor == 'LuisAlejandro' && secrets.GITHUB_TOKEN || secrets.REPO_PERSONAL_ACCESS_TOKEN }}" | ||
|
||
merge: | ||
name: Merge pull request | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/sacli' | ||
runs-on: ubuntu-22.04 | ||
needs: approve | ||
steps: | ||
- name: Merge | ||
uses: actions/github-script@v6 | ||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' | ||
with: | ||
github-token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | ||
script: | | ||
await github.rest.pulls.merge({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.payload.pull_request.number | ||
}) | ||
- name: Merge | ||
uses: actions/github-script@v6 | ||
if: github.actor == 'LuisAlejandro' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
github-token: "${{ github.actor == 'LuisAlejandro' && secrets.GITHUB_TOKEN || secrets.REPO_PERSONAL_ACCESS_TOKEN }}" | ||
script: | | ||
await github.rest.pulls.merge({ | ||
owner: context.repo.owner, | ||
|
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 |
---|---|---|
|
@@ -61,4 +61,5 @@ target/ | |
# VSCode | ||
.vscode/ | ||
|
||
virtualenv/ | ||
virtualenv/ | ||
*.env |
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.