Skip to content

Commit

Permalink
Merge branch 'master' into schema-type-safety
Browse files Browse the repository at this point in the history
  • Loading branch information
george-zubrienko authored Jun 14, 2023
2 parents baa9e6e + e5cf202 commit 40642be
Show file tree
Hide file tree
Showing 22 changed files with 710 additions and 193 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bug report
description: Create a bug report to help us to improve
title: "[BUG] ..."
labels: bug
body:
- type: textarea
attributes:
label: Description
description: |
Briefly describe the problem you are having in a few paragraphs.
validations:
required: true

- type: textarea
attributes:
label: Code snippet that reproduces the issue
description: |
Write a runnable code example that reproduces unexpected behavior
validations:
required: true

- type: textarea
attributes:
label: Describe the results you expected
validations:
required: true

- type: input
attributes:
label: Python version you are using
placeholder: python --version
validations:
required: true

- type: textarea
attributes:
label: Environment description
placeholder: python -m pip freeze
validations:
required: true
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature request
description: Suggest an idea for this project
title: "[FEATURE] ..."
labels: enhancement
body:
- type: textarea
attributes:
label: Description
description: Is your feature request related to a problem? Please describe.
value: I'm always frustrated when [...]
validations:
required: true

- type: textarea
attributes:
label: Possible solution
description: |
Describe the solution you'd like.
A clear and concise description of what you want to happen.
validations:
required: false

- type: textarea
attributes:
label: Alternatives
description: |
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true

- type: textarea
attributes:
label: Context
description: |
Additional context
Add any other context or screenshots about the feature request here.
validations:
required: false
48 changes: 44 additions & 4 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,26 @@ on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- master
workflow_dispatch:

jobs:
test_and_publish:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
# https://github.com/actions/python-versions/blob/main/versions-manifest.json
python-version: [3.6, 3.7, 3.8, 3.9, 3.10.0-rc.2]
python-version: [3.7, 3.8, 3.9, "3.10"]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -33,3 +36,40 @@ jobs:
- name: Test with pytest
run: |
pytest
publish:
needs: [test]
if: startsWith(github.ref, 'refs/tags')
environment: publish
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1


Loading

0 comments on commit 40642be

Please sign in to comment.