Skip to content

Commit

Permalink
build(dependencies): ⬆️ fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
MerleLiuKun committed Mar 1, 2024
1 parent 666ffec commit 9412ec8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,31 @@ jobs:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', "3.11"]
include:
- python-version: '3.10'
update-coverage: false
update-coverage: true

steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ matrix.python-version }}-poetry-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: poetry install
run: |
python -m pip install --upgrade pip poetry
poetry install
- name: Test with pytest
run: poetry run pytest
- name: Upload coverage to Codecov
if: ${{ matrix.update-coverage }}
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
verbose: true

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ python = "^3.6.2"
requests = "^2.24"
dataclasses-json = "^0.5.7"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
pytest = "^6.2.5"

[build-system]
Expand Down

0 comments on commit 9412ec8

Please sign in to comment.