Skip to content

Commit 943b2da

Browse files
committed
Test release flow
1 parent 38effa4 commit 943b2da

File tree

4 files changed

+31
-52
lines changed

4 files changed

+31
-52
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release to PyPi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
name: upload release to PyPI
10+
runs-on: ubuntu-latest
11+
# Specifying a GitHub environment is optional, but strongly encouraged
12+
environment: release
13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.11'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/unittests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python-version }}
20+
cache: 'pip'
2021
# You can test your matrix by printing the current Python version
2122
- name: Install deps
2223
run: pip install -U setuptools pep8 coverage docutils pygments packaging pytest pytest-cov ${{ matrix.dependencies }}

.travis.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

flask_cors/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def init_app(self, app, **kwargs):
160160
for (pattern, opts) in resources
161161
]
162162

163-
# Create a human readable form of these resources by converting the compiled
163+
# Create a human-readable form of these resources by converting the compiled
164164
# regular expressions into strings.
165165
resources_human = {get_regexp_pattern(pattern): opts for (pattern,opts) in resources}
166166
LOG.debug("Configuring CORS with resources: %s", resources_human)

0 commit comments

Comments
 (0)