Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moshi4 committed Aug 26, 2023
1 parent 1a94372 commit d8493ee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8, 3.9, "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -24,11 +24,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Install poetry v1.4.0 to avoid _WheelFileValidationError in debugpy
# Latest poetry v1.4.1 cannot install debugpy
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.4.0
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install Dependencies
Expand All @@ -37,8 +35,8 @@ jobs:
- name: Run black format check
run: poetry run black src tests --check --diff --verbose

- name: Run flake8 lint check
run: poetry run flake8 src tests --max-line-length=88 --ignore=E203,W503,W504
- name: Run ruff lint check
run: poetry run ruff .

- name: Run pytest
run: poetry run pytest tests --tb=line --cov=src --cov-report=xml --cov-report=term

0 comments on commit d8493ee

Please sign in to comment.