Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
illvart committed Jan 23, 2024
1 parent 7d46242 commit 533da1d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 36 deletions.
18 changes: 0 additions & 18 deletions .github/stale.yml

This file was deleted.

30 changes: 12 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
name: CI
on:
pull_request:
push:
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]
jobs:
linter:
name: Run linting and format code
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.10']
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GIT_TOKEN }}
- uses: styfle/cancel-workflow-action@0.10.0
- uses: actions/checkout@v4
- uses: styfle/cancel-workflow-action@0.12.0
with:
all_but_latest: true
access_token: ${{ secrets.GIT_TOKEN }}
- uses: actions/setup-python@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
Expand All @@ -39,11 +33,11 @@ jobs:
run: python3 -m run --lint
- uses: illvart/beautysh-action@latest
with:
args: '*.sh --indent-size 2 &>/dev/null'
- uses: stefanzweifel/git-auto-commit-action@v4
args: "*.sh --indent-size 2 &>/dev/null"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '[action] ci: auto-fixes'
commit_options: '--no-verify'
commit_message: "[action] ci: auto-fixes"
commit_options: "--no-verify"
commit_user_name: kastaid
commit_user_email: ${{ secrets.EMAIL }}
commit_author: kastaid <${{ secrets.EMAIL }}>
commit_author: kastaid <${{ secrets.EMAIL }}>
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
days-before-stale: 30
days-before-close: 7

0 comments on commit 533da1d

Please sign in to comment.