mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2025-06-23 12:40:03 +08:00
27
.github/workflows/CI.yaml
vendored
Normal file
27
.github/workflows/CI.yaml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.event.number || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
testing:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: install python 3.9
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.9"
|
||||
cache: "pip" # caching pip dependencies
|
||||
- name: Check formatting (black)
|
||||
run: |
|
||||
pip install black
|
||||
black . --check
|
Reference in New Issue
Block a user