mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-07 20:33:01 +08:00
Merge branch 'next' into feat/db
This commit is contained in:
commit
bf4fcefe89
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
needs: build-frontend
|
needs: build-frontend
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.10"]
|
python-version: ["3.9","3.10"]
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
@ -97,6 +97,17 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Test Build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./docker/Dockerfile_with_frontend
|
||||||
|
push: false
|
||||||
|
tags: felinae98/nonebot-bison:dummy
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
@ -106,10 +117,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile_with_frontend
|
file: ./docker/Dockerfile_with_frontend
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: true
|
||||||
tags: felinae98/nonebot-bison:${{ env.GITHUB_REF_NAME }}
|
tags: felinae98/nonebot-bison:${{ env.GITHUB_REF_NAME }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
@ -23,7 +23,7 @@ classifiers = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<4.0.0"
|
python = ">=3.9,<4.0.0"
|
||||||
nonebot2 = "^2.0.0-beta.2"
|
nonebot2 = "^2.0.0-beta.2"
|
||||||
httpx = ">=0.16.1"
|
httpx = ">=0.16.1"
|
||||||
bs4 = "^0.0.1"
|
bs4 = "^0.0.1"
|
||||||
@ -67,7 +67,7 @@ asyncio_mode = "auto"
|
|||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 88
|
line-length = 88
|
||||||
target-version = ["py310"]
|
target-version = ["py39","py310"]
|
||||||
include = '\.pyi?$'
|
include = '\.pyi?$'
|
||||||
extend-exclude = '''
|
extend-exclude = '''
|
||||||
'''
|
'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user