Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisAlejandro committed Aug 29, 2023
2 parents 7efd730 + f7fa312 commit a07779f
Show file tree
Hide file tree
Showing 113 changed files with 5,235 additions and 2,889 deletions.
6 changes: 4 additions & 2 deletions .bumpversion.cfg
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]
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[run]
source = sacli
source = agoras
21 changes: 5 additions & 16 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,13 @@ updates:
directory: "/"
schedule:
interval: weekly
day: wednesday
day: tuesday
time: "01:00"
open-pull-requests-limit: 99
ignore:
- dependency-name: coverage
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
day: wednesday
time: "01:00"
open-pull-requests-limit: 99
- package-ecosystem: docker
directory: "/"
schedule:
interval: weekly
day: wednesday
time: "01:00"
open-pull-requests-limit: 99
ignore:
- dependency-name: dockershelf/python
versions:
- "> 3.10"
day: tuesday
time: "01:00"
11 changes: 4 additions & 7 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ name: Code Quality

on:
schedule:
- cron: '00 6 * * 5'
- cron: '00 6 * * 2'

jobs:
build:
name: Generating code quality report
runs-on: ubuntu-20.04
if: github.repository == 'LuisAlejandro/sacli'
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: develop
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: python
config-file: ./.github/codeql-config.yml
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
29 changes: 29 additions & 0 deletions .github/workflows/functional.yml
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:
- twitter
- facebook
- instagram
- linkedin
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 }}
70 changes: 14 additions & 56 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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,
Expand Down
56 changes: 22 additions & 34 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,49 @@ on:
jobs:
build:
name: Build
runs-on: ubuntu-20.04
if: github.repository == 'LuisAlejandro/sacli'
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11.0-alpha.5"]
distro:
- alpine
- arch
- centos
- debian
- fedora
- gentoo
npm: [true, false]
yarn: [true, false]
bundler: [true, false]
pip: [true, false]
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@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 }}
PYTHON_VERSION: ${{ matrix.python-version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tox -e ${TOXENV}
- 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"
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-py${{ matrix.python-version }}
path-to-lcov: ./.lcov
parallel: true

finish:
name: Finish
runs-on: ubuntu-22.04
needs: build
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ target/
# VSCode
.vscode/

virtualenv/
virtualenv/
*.env
2 changes: 1 addition & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Authors
Development Lead
----------------

* Luis Alejandro Martínez Faneyth <luis@collagelabs.org>
* Luis Alejandro Martínez Faneyth <luis@luisalejandro.org>

Contributors
------------
Expand Down
2 changes: 1 addition & 1 deletion CLA.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Contributor License Agreement Version 1.0

Copyright (C) 2020-2022, Social Actions CLI Developers.
Copyright (C) 2020-2022, Agoras Developers.

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Expand Down
Loading

0 comments on commit a07779f

Please sign in to comment.