RELEASE: Version 1.0 #3
							
								
								
									
										10
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							@@ -11,6 +11,7 @@ on:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  skip_duplicate:
 | 
					  skip_duplicate:
 | 
				
			||||||
 | 
					    name: Skip if duplicate run
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    outputs:
 | 
					    outputs:
 | 
				
			||||||
      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
					      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
				
			||||||
@@ -44,6 +45,7 @@ jobs:
 | 
				
			|||||||
        uses: github/codeql-action/analyze@v2
 | 
					        uses: github/codeql-action/analyze@v2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  lint:
 | 
					  lint:
 | 
				
			||||||
 | 
					    name: Lint
 | 
				
			||||||
    needs: skip_duplicate
 | 
					    needs: skip_duplicate
 | 
				
			||||||
    if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }}
 | 
					    if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
@@ -60,6 +62,7 @@ jobs:
 | 
				
			|||||||
        run: pylint --recursive=yes .
 | 
					        run: pylint --recursive=yes .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
 | 
					    name: Run unit tests
 | 
				
			||||||
    needs: skip_duplicate
 | 
					    needs: skip_duplicate
 | 
				
			||||||
    if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }}
 | 
					    if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
@@ -81,11 +84,10 @@ jobs:
 | 
				
			|||||||
        uses: codecov/codecov-action@v3
 | 
					        uses: codecov/codecov-action@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  build:
 | 
					  build:
 | 
				
			||||||
 | 
					    name: Build
 | 
				
			||||||
    needs:
 | 
					    needs:
 | 
				
			||||||
      - skip_duplicate
 | 
					 | 
				
			||||||
      - lint
 | 
					      - lint
 | 
				
			||||||
      - test
 | 
					      - test
 | 
				
			||||||
    if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }}
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Check out repository code
 | 
					      - name: Check out repository code
 | 
				
			||||||
@@ -107,12 +109,12 @@ jobs:
 | 
				
			|||||||
          path: dist/
 | 
					          path: dist/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish:
 | 
					  publish:
 | 
				
			||||||
    if: github.event_name == 'push' && github.ref == 'refs/heads/main'
 | 
					    name: Publish
 | 
				
			||||||
    needs: build
 | 
					    needs: build
 | 
				
			||||||
 | 
					    if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Publish to PyPI
 | 
					      - name: Publish to PyPI
 | 
				
			||||||
        uses: pypa/gh-action-pypi-publish@release/v1
 | 
					        uses: pypa/gh-action-pypi-publish@release/v1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          user: __token__
 | 
					          user: __token__
 | 
				
			||||||
          password: ${{ secrets.PYPI_API_TOKEN }}
 | 
					          password: ${{ secrets.PYPI_API_TOKEN }}
 | 
				
			||||||
  
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user