Skip to content

Commit

Permalink
Update CI.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbyte committed Mar 17, 2024
1 parent bad6e0a commit f631a6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/ci.yml
Expand Up @@ -34,9 +34,9 @@ jobs:
# python-version: "3.13.0-alpha - 3.13.0"
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -131,9 +131,9 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
Expand All @@ -147,18 +147,14 @@ jobs:
- name: Run doctest
run: |
python -m sphinx -b doctest -W --keep-going doc build
- uses: actions/upload-artifact@v4
with:
name: sphinx-out
path: ./build/
retention-days: 5
build:
name: Packaging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Build wheel and sdist
Expand All @@ -168,11 +164,12 @@ jobs:
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.os }}-${{ matrix.python-version }}"
name: release
path: ./dist

upload_pypi:
needs: [build]
name: Release to PyPi
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -185,4 +182,5 @@ jobs:
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion can/__init__.py
Expand Up @@ -8,7 +8,7 @@
import logging
from typing import Any, Dict

__version__ = "4.3.2-rc.3"
__version__ = "4.3.2-rc.4"
__all__ = [
"ASCReader",
"ASCWriter",
Expand Down

0 comments on commit f631a6d

Please sign in to comment.