Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump coverage from 6.4.3 to 6.4.4 #10

Merged
merged 106 commits into from
Aug 19, 2022
Merged
Changes from 1 commit
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
0fd4faa
Add .gitignore
codectl Mar 12, 2022
b6872cf
Update project specs
codectl Mar 12, 2022
2166163
Install dependencies
codectl Mar 12, 2022
85e7e85
Set package version
codectl Mar 12, 2022
7793394
Linter configs
codectl Mar 12, 2022
4392cd8
MIT license
codectl Mar 12, 2022
fd23743
Tox configs
codectl Mar 12, 2022
2c6aa7e
Add CHANGELOG
codectl Mar 12, 2022
61e6e4d
Github CI
codectl Mar 12, 2022
e65e094
Rename project
codectl Mar 13, 2022
049ce1a
Rename project
codectl Mar 13, 2022
2e70045
Update dependencies
codectl Mar 13, 2022
fe272d6
Rename module to flask
codectl Mar 13, 2022
2714cee
Pass on apispec to the view
codectl Mar 14, 2022
683f1f5
apispec as a dev dependency
codectl Mar 14, 2022
19ee66d
Flask as an optional dependency
codectl Mar 14, 2022
eaa888e
Fix dependencies
codectl Mar 14, 2022
6bf35b8
Add intermediate variable
codectl Mar 14, 2022
77b2c77
Fix package reference
codectl Mar 14, 2022
fc5c494
Render page with j2
codectl Mar 14, 2022
3ae7f7d
Add swagger views
codectl Mar 14, 2022
7700166
Remove merge option from init
codectl Mar 15, 2022
c905980
Rename variable to apispec
codectl Mar 15, 2022
803dd5f
Minor improvement
codectl Mar 15, 2022
3a82b1e
Test simple app
codectl Mar 15, 2022
d500ae8
Add requests as a dev dependency
codectl Mar 15, 2022
bc1a481
Revert last commit
codectl Mar 15, 2022
9368b93
Test specs url
codectl Mar 15, 2022
9d16ef0
Add test for custom configs
codectl Mar 15, 2022
b60928e
Test no swagger ui
codectl Mar 15, 2022
f88dfb5
Add swagger ui version
codectl Mar 15, 2022
33700ac
Ignore ui dist files
codectl Mar 15, 2022
5aed737
Ignore ui dist files
codectl Mar 15, 2022
66c8298
Linter
codectl Mar 15, 2022
56356bd
Ignore ui dist files
codectl Mar 15, 2022
6763029
Replace dict with literal
codectl Mar 15, 2022
7b19ab8
Update description
codectl Mar 15, 2022
7f2895e
Add base information for README
codectl Mar 15, 2022
165640e
Fix style
codectl Mar 15, 2022
6c6fec4
Update description
codectl Mar 15, 2022
7581ca0
Add example usage
codectl Mar 16, 2022
65e2c58
Change dict key order
codectl Mar 16, 2022
27ad677
Doc lint
codectl Mar 16, 2022
eb793a4
Resolve configs given environment variable
codectl Mar 16, 2022
b76b628
Bump dependency versions
codectl Mar 16, 2022
4808fce
Add pytest-mock as dev dependency
codectl Mar 16, 2022
bbb90b5
Revert install of pytest-mock
codectl Mar 16, 2022
70ae8cf
Merge environment variable config
codectl Mar 16, 2022
2abee8d
Add tests for different configs
codectl Mar 16, 2022
82277f1
Linter
codectl Mar 16, 2022
7933ef4
Remove unused import
codectl Mar 16, 2022
8f1e577
Configure favicon src url
codectl Mar 16, 2022
add534a
Update precedence for configs
codectl Mar 16, 2022
70147ff
Add tests and linting instructions
codectl Mar 16, 2022
f7b985d
Docs improvements
codectl Mar 16, 2022
e0984d1
Add badge for black
codectl Mar 16, 2022
1203e09
Fix typo
codectl Mar 16, 2022
bad1ba3
Initial release
codectl Mar 16, 2022
928727c
Fix formatting issues
codectl Mar 16, 2022
e0933e1
Add badge for CI
codectl Mar 16, 2022
1b1f303
Add codecov badge
codectl Mar 16, 2022
edbc729
Add badge for pypi
codectl Mar 16, 2022
6cef7ec
Fix badge reference
codectl Mar 16, 2022
b701b47
Rename author
codectl Mar 16, 2022
750f206
Remove trailing spaces
codectl Mar 17, 2022
9cf17e0
Prepare 0.1.1
codectl Mar 17, 2022
c34b8ff
Remove trailing slashes
codectl Mar 18, 2022
aa7ad92
Add utils module
codectl Mar 18, 2022
981e268
Fix trailing slash issues on swagger endpoints
codectl Mar 18, 2022
2cd92a7
Tests trailing slash paths
codectl Mar 18, 2022
00a0dda
Updates on new minor release
codectl Mar 18, 2022
bc2ba6c
Bump version to 0.1.1
codectl Mar 18, 2022
a01a280
Linter
codectl Mar 18, 2022
b0777dd
Fix static path reference
codectl Mar 18, 2022
717bedf
Prepare version 0.1.2
codectl Mar 18, 2022
d97cb18
Bump version to 0.1.2
codectl Mar 18, 2022
3e5291a
Add tests for utils
codectl Mar 19, 2022
1ce08b5
Redirect no trailing slashes routes to trailing slashed endpoint
codectl Mar 19, 2022
989b821
Rename function
codectl Mar 19, 2022
07ad624
Fix tests
codectl Mar 19, 2022
0d3f887
Remove uncessary redirect route
codectl Mar 19, 2022
f4b01cf
Remove unused import
codectl Mar 20, 2022
c47a05d
Fix import
codectl Mar 20, 2022
b9f228a
Bump dependency versions
codectl Mar 20, 2022
cccb522
Change CHANGELOG format to rst
codectl Mar 20, 2022
6497d56
Bump version to 0.1.3
codectl Mar 20, 2022
658e89f
Bump version to 0.1.3
codectl Mar 20, 2022
7ca0c54
Reference MIT LICENSE
codectl Mar 20, 2022
6307450
Add depeendabot manifest file
codectl Mar 20, 2022
c05d31e
Bump black version to 22.3.0
codectl Mar 30, 2022
2650c08
Bump pre-commit from 2.17.0 to 2.18.1
dependabot[bot] Apr 4, 2022
023bdee
Merge pull request #1 from rena2damas/dependabot/pip/pre-commit-2.18.1
codectl Apr 4, 2022
de1b0dd
Bump coverage from 6.3.2 to 6.4.1
dependabot[bot] Jun 3, 2022
de7965f
Merge pull request #6 from rena2damas/dependabot/pip/coverage-6.4.1
codectl Jun 3, 2022
7eb1f06
Bump pre-commit from 2.18.1 to 2.20.0
dependabot[bot] Jul 11, 2022
0fcbb6d
Merge pull request #7 from rena2damas/dependabot/pip/pre-commit-2.20.0
codectl Jul 11, 2022
d19cd90
Bump coverage from 6.4.1 to 6.4.2
dependabot[bot] Jul 13, 2022
5a4f706
Merge pull request #8 from rena2damas/dependabot/pip/coverage-6.4.2
codectl Jul 13, 2022
bf95157
Bump dependency versions
codectl Jul 28, 2022
2ca0b5d
Bump dependency versions
codectl Jul 28, 2022
ea85650
Remove spaces between title and body
codectl Jul 30, 2022
97d5246
Bump coverage from 6.4.2 to 6.4.3
dependabot[bot] Aug 8, 2022
4d9b1e1
Merge pull request #9 from rena2damas/dependabot/pip/coverage-6.4.3
codectl Aug 9, 2022
8e12ae2
Bump dependency versions
codectl Aug 9, 2022
63dd387
Bump coverage from 6.4.3 to 6.4.4
dependabot[bot] Aug 17, 2022
2d1ee66
Merge branch 'master' into dependabot/pip/coverage-6.4.4
codectl Aug 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Github CI
codectl committed Mar 12, 2022
commit 61e6e4df13275f7bcd463c7d01c21a659550643c
63 changes: 63 additions & 0 deletions .github/actions/pyenvsetup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: Setup env
description: Create & configure a Python environment
inputs:
python-version:
description: Version range or exact version of a Python version, using SemVer's version range syntax
required: false
default: "3.x"
os:
description: The operating system for the environment
required: false
default: Linux

runs:
using: composite
steps:

- shell: bash
run: echo Set environment for python ${{ inputs.python-version }} in ${{ inputs.os }}

- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ inputs.python-version }}

- name: Set up cache
uses: actions/cache@v2
id: cache
with:
path: .venv
key: venv-${{ inputs.os }}-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Update pip to latest version
shell: bash
run: python -m pip install --upgrade pip

- name: Install poetry
shell: bash
run: |
curl -sL -o poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py
python poetry.py -y

- name: Update PATH
if: ${{ runner.os != 'Windows' }}
shell: bash
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Update Path for Windows
if: ${{ runner.os == 'Windows' }}
shell: bash
run: echo "$APPDATA\Python\Scripts" >> $GITHUB_PATH

- name: Configure poetry
shell: bash
run: poetry config virtualenvs.in-project true

- name: Install poetry dependencies
shell: bash
run: poetry install --no-interaction

- name: Install tox
shell: bash
run: python -m pip install tox tox-poetry
91 changes: 91 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
---
name: main

on:
push:
branches: [ master ]
tags: [ "[0-9]+.[0-9]+.[0-9]+*" ]
pull_request:
branches: [ master ]

jobs:

linters:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/pyenvsetup
with:
python-version: "3.8"
os: ${{ matrix.os }}
- name: Run linter with tox
shell: bash
run: tox -e lint

tests:
name: ${{ matrix.os }}/${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
experimental: [ false ]
include:
- os: ubuntu-latest
python-version: "pypy-3.7"
experimental: false
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/pyenvsetup
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
- name: Run test suite with tox
shell: bash
run: tox -e py -- -p no:sugar -p no:warnings -q

coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/pyenvsetup
with:
python-version: "3.8"
os: ${{ matrix.os }}
- name: Run coverage with tox
shell: bash
run: tox -e coverage -- -p no:sugar -p no:warnings -q
- name: Submit coverage to codecov
uses: codecov/codecov-action@v2

success:
runs-on: ubuntu-latest
needs:
- linters
- tests
- coverage
steps:
- run: echo "Done"

pypi-publish:
needs: [ success ]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/pyenvsetup
with:
python-version: "3.8"
- name: Build & publish with poetry
run: poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}