-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from DeaconDesperado/3.0.0
3.0.0: Version bumps and modern flask
- Loading branch information
Showing
25 changed files
with
446 additions
and
578 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,28 @@ | ||
name: Build and test | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
- name: Set up build deps | ||
run: python -m pip install --upgrade build | ||
- name: Install dependencies | ||
run: python -m pip install '.[dev]' | ||
- name: Lint | ||
run: python -m black --check flask_mab tests | ||
- name: Run tests | ||
run: pytest | ||
- name: Build dist | ||
run: python -m build . | ||
- name: Build docs | ||
uses: ammaraskar/[email protected] | ||
with: | ||
pre-build-command: python -m pip install '.[dev]' | ||
docs-folder: "docs/" | ||
build-command: sphinx-build -b html . _build | ||
|
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,43 @@ | ||
name: publish | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
pypi-publish: | ||
name: Upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/flask_mab | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
- name: Set up build deps | ||
run: python -m pip install --upgrade build | ||
- name: Install dependencies | ||
run: python -m pip install '.[dev]' | ||
- name: Lint | ||
run: python -m black --check flask_mab tests | ||
- name: Run tests | ||
run: pytest | ||
- name: Build dist | ||
run: python -m build . | ||
- name: Build docs | ||
uses: ammaraskar/[email protected] | ||
with: | ||
pre-build-command: python -m pip install '.[dev]' | ||
docs-folder: "docs/" | ||
build-command: sphinx-build -b html . _build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/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 |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "docs/_themes"] | ||
path = docs/_themes | ||
url = https://github.com/mitsuhiko/flask-sphinx-themes.git | ||
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
Submodule _themes
deleted from
1cc446
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.