Skip to content

Commit

Permalink
update python version and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kiraware committed Jan 2, 2024
1 parent d34823f commit 47e8705
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 17 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -41,16 +41,30 @@ jobs:
- name: Install library
run: poetry install --no-interaction
- name: Lint with ruff
run: poetry run ruff check src
run: |
source $VENV
poetry run ruff check src
- name: Check code security with bandit
run: poetry run bandit -r src
run: |
source $VENV
poetry run bandit -r src
- name: Typing with mypy
run: poetry run mypy --check src
run: |
source $VENV
poetry run mypy --check src
- name: Doc format with docformatter
run: poetry run docformatter --check --black -r src
run: |
source $VENV
poetry run docformatter --check --black -r src
- name: Sort import with isort
run: poetry run isort --check src tests
run: |
source $VENV
poetry run isort --check src tests
- name: Format with black
run: poetry run black --check src tests
run: |
source $VENV
poetry run black --check src tests
- name: Test with pytest
run: poetry run pytest tests --cov=src
run: |
source $VENV
poetry run pytest tests --cov=src
30 changes: 22 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -41,16 +41,30 @@ jobs:
- name: Install library
run: poetry install --no-interaction
- name: Lint with ruff
run: poetry run ruff check src
run: |
source $VENV
poetry run ruff check src
- name: Check code security with bandit
run: poetry run bandit -r src
run: |
source $VENV
poetry run bandit -r src
- name: Typing with mypy
run: poetry run mypy --check src
run: |
source $VENV
poetry run mypy --check src
- name: Doc format with docformatter
run: poetry run docformatter --check --black -r src
run: |
source $VENV
poetry run docformatter --check --black -r src
- name: Sort import with isort
run: poetry run isort --check src tests
run: |
source $VENV
poetry run isort --check src tests
- name: Format with black
run: poetry run black --check src tests
run: |
source $VENV
poetry run black --check src tests
- name: Test with pytest
run: poetry run pytest tests --cov=src
run: |
source $VENV
poetry run pytest tests --cov=src
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/kiraware/PyBMKG"
keywords = ["bmkg", "api"]

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"

[tool.poetry.dev-dependencies]
pytest = "^7.4.4"
Expand Down

0 comments on commit 47e8705

Please sign in to comment.