+
Skip to content
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
14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/depup.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/on-push-create-release.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python
name: publish
on:
workflow_call:
secrets:
Expand All @@ -25,7 +25,7 @@ jobs:
python-version: ${{ inputs.python-version }}

- name: Publish Snapshot to TestPyPi
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@v0.1
continue-on-error: true
if: ${{ github.event_name == 'pull_request' }}
with:
Expand All @@ -37,7 +37,7 @@ jobs:
python_version: ${{ inputs.python-version }}

- name: Publish RC to PyPi
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@v0.1
if: ${{ github.event_name == 'push' }}
with:
pypi_publish: true
Expand All @@ -47,7 +47,7 @@ jobs:
python_version: ${{ inputs.python-version }}

- name: Publish Release to PyPi
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@v0.1
if: ${{ github.event_name == 'release' }}
with:
pypi_publish: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: release
on:
workflow_call:
push:
branches:
- main
Expand All @@ -25,7 +26,7 @@ jobs:
# Update corresponding major and minor tag.
# e.g. Update v1 and v1.2 when releasing v1.2.3
- uses: haya14busa/action-update-semver@v1
if: "!steps.bumpr.outputs.skip"
if: '!steps.bumpr.outputs.skip'
with:
tag: ${{ steps.bumpr.outputs.next_version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
locale: "US"

alex:
name: runner / alex
name: runner / alex
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
50 changes: 23 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Test
name: test
on:
push:
branches:
- main
pull_request:
jobs:
test-check:
name: runner / pyaction (github-check)
pyproject:
name: runner / pyproject
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
# Checkout this repo and Python Package Template repo for validation testing.
# Checkout this repo and template project for validation testing.
- uses: actions/checkout@v4
with:
repository: ac-analytics/python-package-template
repository: altcoder/template-python
path: pyproject
clean: true
- uses: actions/checkout@v4
Expand All @@ -27,29 +27,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# Test the action with no enabled steps.
- name: NoOps
# Test the action with python_tool param.
- name: using python_tool
uses: ./pyaction
with:
black: false
bandit: false
pylint: false
pyright: false
pytest: false
pypi_publish: false
pypi_custom_publish: false
root: ./pyproject
python_tool: pytest

# Test the action with all enabled steps.
# - name: All Ops
# uses: ./pyaction
# with:
# black: true
# bandit: true
# pylint: true
# pyright: true
# pytest: true
# pypi_publish: true
# Test the action with specific tool as param.
- name: validation suite
uses: ./pyaction
with:
root: ./pyproject
black: true
bandit: true
pylint: true
pyright: true
pytest: true
pypi_publish: false
pypi_custom_publish: false
# pypi_repo: testpypi
# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
# root: pyproject
# version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'
# pypi_password: ${{ secrets.TEST_PYPI_PASSWORD }}
# version_suffix: 'rc${{ github.run_number }}-dev${{ github.run_attempt }}'
6 changes: 3 additions & 3 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python
name: validation
on:
workflow_call:
inputs:
Expand Down Expand Up @@ -26,9 +26,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: ${{ matrix.tools }}
uses: ac-analytics/action-python@v0.1.1
uses: altcoder/action-python@v0.1
with:
${{ matrix.tools }}: true
python_tool: ${{ matrix.tools }}
args: ${{ matrix.args }}
workdir: ${{ inputs.workdir }}
testdir: ${{ inputs.testdir }}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Ayala Corporation
Copyright (c) 2024 James Faeldon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# action-python
[![Test](https://github.com/altcoder/action-python/workflows/Test/badge.svg)](https://github.com/altcoder/action-python/actions?query=workflow%3ATest)
[![reviewdog](https://github.com/altcoder/action-python/workflows/reviewdog/badge.svg)](https://github.com/altcoder/action-python/actions?query=workflow%3Areviewdog)
[![depup](https://github.com/altcoder/action-python/workflows/depup/badge.svg)](https://github.com/altcoder/action-python/actions?query=workflow%3Adepup)
[![release](https://github.com/altcoder/action-python/workflows/release/badge.svg)](https://github.com/altcoder/action-python/actions?query=workflow%3Arelease)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/altcoder/action-python?logo=github&sort=semver)](https://github.com/altcoder/action-python/releases)
[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)
Expand Down Expand Up @@ -110,37 +109,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Black
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
black: true
python_tool: 'black'

- name: Bandit
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
bandit: true
python_tool: 'bandit'

- name: Pylint
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
pylint: true
python_tool: 'pylint'

- name: Pyright
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
pyright: true
python_tool: 'pyright'

- name: Flake8
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
flake8: true
python_tool: 'flake8'

testing:
runs-on: ubuntu-latest
steps:
- name: Pytest
uses: altcoder/action-python@0.1.0
uses: altcoder/action-python@0.1.1
with:
testing: true
python_tool: 'pytest'
```

## Development
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载