Skip to content

Commit da33dd1

Browse files
authored
Merge pull request #267 from MerleLiuKun/fix-dependecies
build(code): ⬆️ update dataclasses-json version
2 parents 935c29d + 412a695 commit da33dd1

File tree

4 files changed

+14
-877
lines changed

4 files changed

+14
-877
lines changed

.github/workflows/Test.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,31 @@ jobs:
1313
matrix:
1414
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1515
include:
16-
- python-version: 3.10
16+
- python-version: '3.10'
1717
update-coverage: true
1818

1919

2020
steps:
21-
- uses: actions/checkout@v3
22-
- name: Install poetry
23-
run: pipx install poetry
21+
- uses: actions/checkout@v4
2422
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2624
with:
2725
python-version: ${{ matrix.python-version }}
28-
cache: 'poetry'
26+
cache: 'pip'
27+
cache-dependency-path: '**/pyproject.toml'
2928
- name: Install dependencies
30-
run: poetry install
29+
run: |
30+
python -m pip install --upgrade pip poetry
31+
poetry install
3132
- name: Test with pytest
3233
run: poetry run pytest
3334
- name: Upload coverage to Codecov
3435
if: ${{ matrix.update-coverage }}
35-
uses: codecov/codecov-action@v3
36+
uses: codecov/codecov-action@v4
3637
with:
3738
files: ./coverage.xml
3839
fail_ci_if_error: true
40+
token: ${{ secrets.CODECOV_TOKEN }} # required
3941
verbose: true
4042

4143
lint:

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ docs/_build/
5959
# pyenv
6060
.python-version
6161

62+
# Poetry
63+
poetry.lock
64+
6265
# Environments
6366
.env
6467
.venv

0 commit comments

Comments
 (0)