Add ci checks.
This commit is contained in:
		
							parent
							
								
									ce3728ccfb
								
							
						
					
					
						commit
						2307a72564
					
				
					 3 changed files with 33 additions and 2 deletions
				
			
		
							
								
								
									
										30
									
								
								.github/workflows/checks.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/checks.yml
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
name: Checks
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  pull_request:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - stable
 | 
			
		||||
      - dev
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  mypy:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Checkout repository
 | 
			
		||||
      uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
    - name: Set up Python
 | 
			
		||||
      uses: actions/setup-python@v2
 | 
			
		||||
      with:
 | 
			
		||||
        python-version: 3.10
 | 
			
		||||
 | 
			
		||||
    - name: Install dependencies
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m pip install --upgrade pip
 | 
			
		||||
        pip install -r .github/workflows/requirements.txt
 | 
			
		||||
 | 
			
		||||
    - name: Run MyPy
 | 
			
		||||
      run: |
 | 
			
		||||
        python -m mypy .
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/workflows/requirements.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/requirements.txt
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
requests ~= 2.28.0
 | 
			
		||||
graphviz ~= 0.20.1
 | 
			
		||||
mypy ~= 1.7.0
 | 
			
		||||
| 
						 | 
				
			
			@ -1,2 +0,0 @@
 | 
			
		|||
requests ~= 2.28.0
 | 
			
		||||
graphviz ~= 0.20.1
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue