Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gh action fix and py upgrade #21

Merged
merged 10 commits into from
Oct 9, 2024
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
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
Loading