Update README.md (#15) #39
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: Qodana | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- master | |
- 'releases/*' | |
jobs: | |
qodana: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
checks: write | |
steps: | |
# Check out the code | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
# Set up Python (you can specify the version you need) | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' # Set this to your desired Python version | |
- name: Install Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Install dependencies with Poetry | |
run: | | |
poetry install | |
# Run Qodana scan | |
- name: 'Qodana Scan' | |
uses: JetBrains/[email protected] | |
with: | |
pr-mode: false | |
args: --apply-fixes | |
push-fixes: pull-request | |
env: | |
QODANA_TOKEN: ${{ secrets.QODANA }} |