Skip to content

Commit

Permalink
workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropaulofb committed Sep 19, 2023
1 parent 55e4b1c commit 7fe7c87
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 52 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/code_formatting.yml

This file was deleted.

10 changes: 7 additions & 3 deletions .github/workflows/code_testing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Code testing
name: Code Testing

on: push
# Substitute for pull-request
on:
pull_request:
types:
- opened

permissions:
contents: read
Expand Down Expand Up @@ -34,4 +38,4 @@ jobs:
pip install -r requirements.txt
- name: Testing with pytest
run: pytest ./json2graph/tests/test_main.py
run: pytest ./json2graph/tests/test_main.py
14 changes: 7 additions & 7 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Update Docs

# Substitute for pull-request
on:
workflow_run:
workflows: [ "Code Testing" ]
branches: [ v1.3.0 ]
types:
- completed
pull_request_review:
types: [ approved ]
# workflow_run:
# workflows: [ "Code Testing" ]
# types:
# - completed

jobs:
generate-docs:
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
git config --local user.name "pedropaulofb"
git add .
git commit -m "Update documentation"
git push origin v1.3.0
git push
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pylint-dev/pylint
rev: v2.17.2
hooks:
- id: pylint

0 comments on commit 7fe7c87

Please sign in to comment.