mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2025-01-30 18:38:36 +00:00
👷 support: ci
This commit is contained in:
parent
b982a773f9
commit
24708edf2b
38
.github/workflows/python.yml
vendored
Normal file
38
.github/workflows/python.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
name: Fetch Wiki
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
workflow_dispatch: ~
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Fetch-Wiki:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.9
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Fetch Remote Files
|
||||||
|
run: |
|
||||||
|
python main.py
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
author_name: github-actions[bot]
|
||||||
|
author_email: github-actions[bot]@users.noreply.github.com
|
||||||
|
push: 'origin remote --force'
|
||||||
|
new_branch: 'remote'
|
||||||
|
message: ':sparkles: Fetch Wiki Changes'
|
||||||
|
add: |
|
||||||
|
'data'
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -158,4 +158,3 @@ cython_debug/
|
|||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
.idea/
|
.idea/
|
||||||
data/
|
|
||||||
|
1
main.py
1
main.py
@ -1,5 +1,4 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import aiofiles
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from func.fetch_all import get_list
|
from func.fetch_all import get_list
|
||||||
from func.fetch_materials import fetch_materials, fetch_materials_infos, dump_materials
|
from func.fetch_materials import fetch_materials, fetch_materials_infos, dump_materials
|
||||||
|
4
poetry.lock
generated
4
poetry.lock
generated
@ -406,5 +406,5 @@ files = [
|
|||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.9"
|
python-versions = "^3.8"
|
||||||
content-hash = "9dcfe357a07b9d509acb71adb450b200fe5993525f6f5c20729cef412478d4f7"
|
content-hash = "92029b38a714a18b26df688fd37a5257054a4ba90bf34454f08fc851a82dda5c"
|
||||||
|
@ -7,7 +7,7 @@ license = "AGPL 3.0+"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.8"
|
||||||
httpx = "^0.24.0"
|
httpx = "^0.24.0"
|
||||||
aiofiles = "^23.1.0"
|
aiofiles = "^23.1.0"
|
||||||
ujson = "^5.7.0"
|
ujson = "^5.7.0"
|
||||||
|
15
requirements.txt
Normal file
15
requirements.txt
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
aenum==3.1.12 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
aiofiles==23.1.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
anyio==3.6.2 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
beautifulsoup4==4.12.2 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
certifi==2022.12.7 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
h11==0.14.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
httpcore==0.17.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
httpx==0.24.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
idna==3.4 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
lxml==4.9.2 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
pydantic==1.10.7 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
sniffio==1.3.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
soupsieve==2.4.1 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
typing-extensions==4.5.0 ; python_version >= "3.8" and python_version < "4.0"
|
||||||
|
ujson==5.7.0 ; python_version >= "3.8" and python_version < "4.0"
|
Loading…
Reference in New Issue
Block a user