mirror of
				https://github.com/enpaul/tox-poetry-installer.git
				synced 2025-11-03 07:39:20 +00:00 
			
		
		
		
	Add CI for PRs and CD for default branch
This commit is contained in:
		
							
								
								
									
										41
									
								
								.github/workflows/ci.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								.github/workflows/ci.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					name: CI
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    types: ["opened", "synchronize"]
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: ["devel"]
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  Test:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    strategy:
 | 
				
			||||||
 | 
					      matrix:
 | 
				
			||||||
 | 
					        python:
 | 
				
			||||||
 | 
					          - version: 3.6
 | 
				
			||||||
 | 
					            toxenv: py36
 | 
				
			||||||
 | 
					          - version: 3.7
 | 
				
			||||||
 | 
					            toxenv: py37
 | 
				
			||||||
 | 
					          - version: 3.8
 | 
				
			||||||
 | 
					            toxenv: py38
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - name: Set up Python ${{ matrix.python.version }}
 | 
				
			||||||
 | 
					        uses: actions/setup-python@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          python-version: ${{ matrix.python.version }}
 | 
				
			||||||
 | 
					      - name: Install tox
 | 
				
			||||||
 | 
					        run: pip install "tox>=3.20.0,<3.21.0" --upgrade
 | 
				
			||||||
 | 
					      - name: Run tests via ${{ matrix.python.toxenv }}
 | 
				
			||||||
 | 
					        run: tox -e ${{ matrix.python.toxenv }}
 | 
				
			||||||
 | 
					  Check:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					      - name: Set up Python 3.8
 | 
				
			||||||
 | 
					        uses: actions/setup-python@v1
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          python-version: 3.8
 | 
				
			||||||
 | 
					      - name: Install tox requirements
 | 
				
			||||||
 | 
					        run: pip install "tox>=3.20.0,<3.21.0" --upgrade
 | 
				
			||||||
 | 
					      - name: Run meta checks
 | 
				
			||||||
 | 
					        run: tox -e static -e static-tests -e security
 | 
				
			||||||
		Reference in New Issue
	
	Block a user