Merge pull request #71 from dontinelli/dependabot/github_actions/soft… #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Ruff" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
ruff: | |
name: "Ruff" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: ⤵️ Checkout the repository | |
uses: actions/checkout@v4.1.7 | |
- name: 🏗 Set up Python | |
uses: actions/setup-python@v5.3.0 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: 🏗 Install requirements | |
run: python3 -m pip install -r requirements.txt | |
- name: 🏗 Install ruff | |
run: python3 -m pip install ruff | |
- name: 🚀 Run | |
run: python3 -m ruff check ./custom_components/fyta |