Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,21 @@ on:

env:
PYTHON_VERSION: "3.10"
POETRY_VERSION: "1.5.1"
POETRY_URL: https://install.python-poetry.org

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Packages
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-${{ matrix.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/*.yml') }}

- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install Dependencies
run: pip install pysen flake8 black isort
run: pip install pysen flake8 black isort==5.12.0

- name: Pysen run lint
run: pysen run lint
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ jobs:
run: poetry run -- pytest -k ${{ matrix.test }}

- name: Upload Coverage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.test }}
include-hidden-files: true
path: .coverage
retention-days: 1
overwrite: true

report_coverage:
runs-on: ubuntu-latest
Expand All @@ -78,7 +79,7 @@ jobs:
python-version: 3.11

- name: Download Coverage Files
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Install coverage
run: pip install coverage
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ requests = "^2.31.0"
[tool.poetry.group.dev.dependencies]
black = ">=23.7,<25.0"
flake8 = ">=6.1,<8.0"
isort = "^5.12.0"
isort = ">=5.12,<7.0"
pre-commit = ">=3.3.3,<5.0.0"
pysen = ">=0.10.5,<0.12.0"
pytest = ">=7.4,<9.0"
Expand Down
Loading