mirror of
https://github.com/cmur2/kube-stale-resources.git
synced 2025-06-29 10:30:25 +02:00
ci: use github actions for simply CI
This commit is contained in:
28
.github/workflows/ci.yml
vendored
Normal file
28
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '0 4 * * *'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pipenv
|
||||
pipenv install --dev --deploy
|
||||
- name: Formatting
|
||||
run: |
|
||||
# check that the source files are formatted correctly
|
||||
pipenv run yapf -q *.py
|
||||
- name: Linting
|
||||
run: |
|
||||
pipenv run pylint *.py
|
Reference in New Issue
Block a user