Skip to content

[pre-commit.ci] autoupdate #96

[pre-commit.ci] autoupdate

[pre-commit.ci] autoupdate #96

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
# test:
# name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
# strategy:
# matrix:
# os: [ ubuntu-latest , windows-latest ]
# python-version: [ "3.10", "3.11" ,"3.12" ]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Clone Repository
# uses: actions/checkout@v4
#
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Set up Poetry
# uses: abatilo/actions-poetry@v3.0.0
# with:
# poetry-version: 1.7.1
#
# - name: Run Tests
# run: |
# poetry install
# pytest tests
#
# - name: Upload Coverage
# uses: codecov/codecov-action@v1
publish:
# needs: test
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'Atticuszz' }}
runs-on: ubuntu-latest
name: "Bump version, create changelog and publish"
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
token: ${{ secrets.ATTICUS_PAT }}
- name: Python Package Release
uses: Atticuszz/Poetry-semantic-release@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
#
# docker-build:
# runs-on: ubuntu-latest
# steps:
# - name: Build and Push Docker Image
# uses: Atticuszz/docker-image-build-push@main
# with:
# docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
# docker_hub_access_token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
# image_name: "atticuszhou/pygizmokit:latest"