Skip to content

Commit

Permalink
Merge pull request #250 from euphorie/gha-resurrect
Browse files Browse the repository at this point in the history
Lint the yaml file and add a pre-commit hook
  • Loading branch information
ale-rt authored May 27, 2024
2 parents 31dec4f + b3a0502 commit 0747766
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
name: tests

on:
on: # yamllint disable-line rule:truthy
push:
branches: [main]
branches:
- main
pull_request:
schedule:
- cron: "0 12 * * 0" # run once a week on Sunday
- cron: "0 12 * * 0" # run once a week on Sunday

jobs:
build:
Expand Down Expand Up @@ -33,7 +35,7 @@ jobs:
~/.cache/pip
**/eggs
**/downloads
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }}
key: ${{ runner.os }}-cache-${{ hashFiles('setup.*', '*.cfg') }}-${{ matrix.config[0] }} # yamllint disable-line rule:line-length
restore-keys: |
${{ runner.os }}-cache-
- name: Install dependencies
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ repos:
rev: 1.0.0
hooks:
- id: check-po
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
1 change: 1 addition & 0 deletions src/osha/oira/content/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from zope.interface import Invalid
from zope.interface import invariant


try:
# This needs a merge of https://github.com/euphorie/Euphorie/pull/739
from euphorie.htmllaundry.z3cform import HtmlText
Expand Down

0 comments on commit 0747766

Please sign in to comment.