This repository has been archived by the owner on Nov 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
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
47 changed files
with
2,281 additions
and
2,164 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 @@ | ||
virtualenv/ |
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,22 @@ | ||
% if data["title"]: | ||
${data["title"]} | ||
============ | ||
% endif | ||
|
||
% for version in data["versions"]: | ||
|
||
<% title = "%s (%s)\n------------" % (version["tag"], version["date"]) if version["tag"] else "%s\n------------" % opts["unreleased_version_label"] %>${title} | ||
% for section in version["sections"]: | ||
|
||
<% lbl = "%s\n~~~~~~~~~~~~" % section["label"] %>${lbl} | ||
|
||
% for commit in section["commits"]: | ||
<% | ||
author = commit["author"].replace('_', '\_') | ||
subject = "%s [%s]" % (commit["subject"], author) | ||
entry = indent(subject, first=" * ").strip() | ||
%>${entry} | ||
|
||
% endfor | ||
% endfor | ||
% endfor |
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,4 @@ | ||
name: CodeQL config | ||
|
||
paths-ignore: | ||
- virtualenv |
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,27 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: thursday | ||
time: "01:00" | ||
open-pull-requests-limit: 99 | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: thursday | ||
time: "01:00" | ||
open-pull-requests-limit: 99 | ||
- package-ecosystem: docker | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
day: thursday | ||
time: "01:00" | ||
open-pull-requests-limit: 99 | ||
ignore: | ||
- dependency-name: dockershelf/python | ||
versions: | ||
- "> 3.10" |
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,23 @@ | ||
name: Code Quality | ||
|
||
on: | ||
schedule: | ||
- cron: '00 6 * * 4' | ||
|
||
jobs: | ||
build: | ||
name: Generating code quality report | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: develop | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: python | ||
config-file: ./.github/codeql-config.yml | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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,126 @@ | ||
name: Pull Request | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- ready_for_review | ||
- synchronize | ||
- reopened | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
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" | ||
toxenv: "py311" | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: develop | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
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 | ||
- name: Measuring coverage | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
tox -e ${TOXENV} | ||
- 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 | ||
- 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 . && \ | ||
python${PYTHON_VERSION} -m pipsalabim.cli update" | ||
finish: | ||
name: Finish | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
needs: build | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
parallel-finished: true | ||
|
||
approve: | ||
name: Approve pull request | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
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' | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
merge: | ||
name: Merge pull request | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
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 }}" | ||
script: | | ||
await github.rest.pulls.merge({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
pull_number: context.payload.pull_request.number | ||
}) |
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,64 @@ | ||
name: Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'LuisAlejandro/pipsalabim' | ||
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" | ||
toxenv: "py311" | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: develop | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
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 | ||
- name: Measuring coverage | ||
env: | ||
TOXENV: ${{ matrix.toxenv }} | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
tox -e ${TOXENV} | ||
- 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 | ||
- 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 . && \ | ||
python${PYTHON_VERSION} -m pipsalabim.cli update" |
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 |
---|---|---|
|
@@ -60,3 +60,6 @@ target/ | |
|
||
# virtualenv | ||
virtualenv/ | ||
|
||
# VSCode | ||
.vscode/ |
Oops, something went wrong.