-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement detailed Genshin character endpoint (#219) * Implement detailed Genshin character endpoint. * Run nox and fix formatting issues. * Fix type checker issues * Replace root_validator with validator * Improve __fill_prop_info * Rename some fields and models * Improve artifact set effect impl --------- Co-authored-by: seriaati <[email protected]> * Fix error on get_genshin_user * Add detailed character test * Add ZZZPropertyType.ANOMALY_MASTERY * Remove the usage of galias * Remove custom validation dunder methods * Remove the use of lang in APIModel * Fix validation error on FullGenshinUserStats * Fix validation error on CalculatorConsumable * Fix TypeError on generic models * Fix KeyError on GenshinDetailCharacters * Fix ValidationError on FullHonkaiUserStats * Fix ValidationError on LineupPreview * Fix ValidationError on PartialLineupCharacter * Revert PartialLineupCharacter changes * Fix ValidationError on PartialLineupCharacter * Make stored_attendance_refresh_countdown optional * Allow returning raw data * Fix returning wrong icons * Fix _create_icon method * Fix problem with aliased fields in root validators * Im dumb * Fix validation error on DailyReward * Fix error in getting db char * Add TheaterDifficulty.IDK * Fix character icons with img theater * Remove partial/unknown character test * Add pyroculi * Remove messed up character test * Add missing events in HSR announcements * Add img field to Announcement * Rename TheaterDifficulty.IDK to TheaterDifficulty.VISIONARY * Fix qrcode login * Change otp code mmt model to v4 * Fix using tuple class to type hint * Add support for SQLiteCache * Add clear_cache method to SQLiteCache * Allow not passing in connection for SQLiteCache * Fix HSR gacha log route * Make wish record time timezone aware * Export StarRailBannerType * Fix tz offset causing KeyError in Genshin * Add Natlan tribe reputations * Fix field not being Aliased * Add ImgTheater battle stats * Fix HSR code redeem not working * Fix ValidationError in TheaterBattleStats * Disable coverage workflows temporarily --------- Co-authored-by: Furia <[email protected]>
- Loading branch information
1 parent
7f8d70b
commit 13ab1ed
Showing
37 changed files
with
622 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,44 +49,44 @@ jobs: | |
python -m nox -s test --verbose -- --cov-append | ||
mv .coverage .coverage.${{ matrix.python-version }} | ||
- name: Upload coverage | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: coverage | ||
path: .coverage.${{ matrix.python-version }} | ||
retention-days: 1 | ||
if-no-files-found: error | ||
|
||
upload-coverage: | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Download coverage | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: coverage | ||
|
||
- name: Combine coverage | ||
run: | | ||
pip install -r ./genshin-dev/pytest-requirements.txt | ||
coverage combine | ||
coverage xml -i | ||
- name: Upload coverage to codeclimate | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: cd8c7d84ae5f98d86882d666dce0946fe5aae1e63f442995bd9c6e17869e6513 | ||
with: | ||
coverageLocations: .coverage.xml:coverage.py | ||
# - name: Upload coverage | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: coverage | ||
# path: .coverage.${{ matrix.python-version }} | ||
# retention-days: 1 | ||
# if-no-files-found: error | ||
|
||
# upload-coverage: | ||
# needs: [test] | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout repo | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: Setup python 3.10 | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.10" | ||
|
||
# - name: Download coverage | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: coverage | ||
|
||
# - name: Combine coverage | ||
# run: | | ||
# pip install -r ./genshin-dev/pytest-requirements.txt | ||
# coverage combine | ||
# coverage xml -i | ||
|
||
# - name: Upload coverage to codeclimate | ||
# uses: paambaati/[email protected] | ||
# env: | ||
# CC_TEST_REPORTER_ID: cd8c7d84ae5f98d86882d666dce0946fe5aae1e63f442995bd9c6e17869e6513 | ||
# with: | ||
# coverageLocations: .coverage.xml:coverage.py | ||
|
||
type-check: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,3 +59,7 @@ docs/pdoc | |
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# databases | ||
*.sqlite3 | ||
*.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.