Skip to content

Commit

Permalink
ci: use thecesrom/workflows (#131)
Browse files Browse the repository at this point in the history
delete "old" workflows
  • Loading branch information
César Román authored Feb 14, 2023
1 parent 47e1141 commit 3ad59ec
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 100 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/ci.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: main

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
test:
uses: thecesrom/workflows/.github/workflows/tox.yml@v0.0.2
with:
image: ubuntu-20.04
pre-commit: true
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: publish

on:
release:
types:
- published

jobs:
main:
uses: thecesrom/workflows/.github/workflows/pypi-upload.yml@v0.0.2
with:
image: ubuntu-20.04
python-version: "2.7"
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
47 changes: 0 additions & 47 deletions .github/workflows/pypi_upload.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ repos:
entry: pylint
language: system
types: [python]
- repo: /~https://github.com/python-jsonschema/check-jsonschema.git
rev: 0.21.0
hooks:
- id: check-github-workflows
name: check github workflows
- repo: /~https://github.com/commitizen-tools/commitizen
rev: v2.41.0
hooks:
Expand Down

0 comments on commit 3ad59ec

Please sign in to comment.