mirror of
				https://github.com/b4tman/sync_ics2gcal
				synced 2025-11-03 20:28:29 +00:00 
			
		
		
		
	add reviewdog workflow with mypy
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
name: reviewdog
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches:
 | 
			
		||||
    - master
 | 
			
		||||
    - develop
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
    - name: Set up Python
 | 
			
		||||
      uses: actions/setup-python@v2
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.x
 | 
			
		||||
 | 
			
		||||
    - name: Upgrade pip
 | 
			
		||||
      run: python -m pip install --upgrade pip
 | 
			
		||||
 | 
			
		||||
    - name: Install Poetry
 | 
			
		||||
      uses: snok/install-poetry@v1
 | 
			
		||||
 | 
			
		||||
    - name: Install deps
 | 
			
		||||
      run: poetry install
 | 
			
		||||
 | 
			
		||||
    - name: setup mypy
 | 
			
		||||
      run: |
 | 
			
		||||
        mkdir tmp_bin/
 | 
			
		||||
        echo "#!/bin/sh" > tmp_bin/mypy
 | 
			
		||||
        echo "poetry run mypy \$@" >> tmp_bin/mypy
 | 
			
		||||
        chmod +x tmp_bin/mypy
 | 
			
		||||
        echo ::add-path::tmp_bin/
 | 
			
		||||
 | 
			
		||||
    - uses: tsuyoshicho/action-mypy@v3
 | 
			
		||||
      with:
 | 
			
		||||
       reporter: github-pr-review
 | 
			
		||||
       level: warning
 | 
			
		||||
		Reference in New Issue
	
	Block a user