Skip to content

Commit

Permalink
Gh action fix and py upgrade (#21)
Browse files Browse the repository at this point in the history
+ other improvments
  • Loading branch information
esharf authored Oct 9, 2024
1 parent 0f80f46 commit d5788a8
Show file tree
Hide file tree
Showing 6 changed files with 204 additions and 206 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,22 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
include:
- python-version: "3.8"
- python-version: "3.9"
- python-version: "3.10"
- python-version: "3.11"
- python-version: "3.12"
upload-coverage: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install and configure Poetry
uses: snok/install-poetry@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "${{ matrix.python-version }}"
cache: 'poetry'
- name: Install dependencies
run: poetry install
Expand All @@ -53,6 +59,7 @@ jobs:
- name: Test with pytest
run: poetry run pytest --cov=strstyle --cov-fail-under=100 --cov-report=xml
- name: Upload coverage reports to Codecov
if: ${{ matrix.upload-coverage }}
uses: 'codecov/codecov-action@v3'
with:
fail_ci_if_error: true
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ jobs:
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
poetry config pypi-token.pypi "0000000000"
- name: cleanup
if: always()
run: poetry config pypi-token.pypi "0000000000"

8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-python.debugpy",
"ms-python.python",
"ms-python.vscode-pylance",
"github.vscode-github-actions"
]
}
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from .strstyle import * # noqa: F401, F403
from strstyle import * # noqa: F401, F403
Loading

0 comments on commit d5788a8

Please sign in to comment.