Skip to content

Commit 207b485

Browse files
committed
Merge branch 'main' into develop
# Conflicts: # .github/workflows/python-package-3.10.yml # .github/workflows/python-package-310.yml # .github/workflows/python-package.yml # README.md
2 parents 555c2d5 + 0ac62ff commit 207b485

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

.github/workflows/python-package-310.yml renamed to .github/workflows/python-package-3.10.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Build and Test (Python 3.9)
4+
name: Build & tests Python 3.10
55

66
on:
77
workflow_dispatch:
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
5+
name: Build & tests Python 3.11
6+
7+
8+
on:
9+
workflow_dispatch:
10+
schedule:
11+
- cron: "0 2 * * 1-5"
12+
push:
13+
branches:
14+
- main
15+
- develop
16+
- release/*
17+
pull_request:
18+
branches:
19+
- main
20+
- develop
21+
jobs:
22+
build:
23+
24+
runs-on: ubuntu-latest
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
python-version: ["3.11"]
29+
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
python -m pip install flake8 pytest
40+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
41+
- name: Lint with flake8
42+
run: |
43+
# stop the build if there are Python syntax errors or undefined names
44+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
45+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
46+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
47+
- name: Test with pytest
48+
run: |
49+
pytest

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

22
![Logo image](.github/cover.png)
33

4-
54
# The Python chatbot framework with batteries included
65
[![PyPI version](https://badge.fury.io/py/Pyttman.svg)](https://badge.fury.io/py/Pyttman)
76
[![CodeQL](https://github.com/dotchetter/Pyttman/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/dotchetter/Pyttman/actions/workflows/codeql-analysis.yml)
87
[![Python package](https://github.com/dotchetter/Pyttman/actions/workflows/python-package-310.yml/badge.svg)](https://github.com/dotchetter/Pyttman/actions/workflows/python-package-310.yml)
8+
[![Python package](https://github.com/dotchetter/Pyttman/actions/workflows/python-package-311.yml/badge.svg)](https://github.com/dotchetter/Pyttman/actions/workflows/python-package-311.yml)
9+
910

1011
### If you've ever developed a chatbot or otherwise virtual assistant
1112
-how many times have you had to iterate over the message contents to route the

0 commit comments

Comments
 (0)