mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-10-31 11:48:56 +08:00 
			
		
		
		
	Merge pull request #281 from patrick91/feature/poetry-caching
Add poetry caching support
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/e2e-cache.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/e2e-cache.yml
									
									
									
									
										vendored
									
									
								
							| @@ -21,7 +21,7 @@ jobs: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         python-version: ['3.8', '3.9', 'pypy-3.7-v7.x'] | ||||
|         python-version: ['3.9', 'pypy-3.7-v7.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup Python | ||||
| @@ -39,7 +39,7 @@ jobs: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         python-version: ['3.8', '3.9', 'pypy-3.7-v7.x'] | ||||
|         python-version: ['3.9', 'pypy-3.7-v7.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup Python | ||||
| @@ -52,6 +52,28 @@ jobs: | ||||
|       - name: Install dependencies | ||||
|         run: pipenv install numpy | ||||
|  | ||||
|   python-poetry-dependencies-caching: | ||||
|     name: Test poetry (Python ${{ matrix.python-version}}, ${{ matrix.os }}) | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         python-version: ['3.9', 'pypy-3.7-v7.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Install poetry | ||||
|         run: pipx install poetry | ||||
|       - name: Setup Python | ||||
|         uses: ./ | ||||
|         with: | ||||
|           python-version: ${{ matrix.python-version }} | ||||
|           cache: 'poetry' | ||||
|       - name: Init pyproject.toml | ||||
|         run: poetry init -n | ||||
|       - name: Install dependencies | ||||
|         run: poetry add flake8 | ||||
|  | ||||
|   python-pip-dependencies-caching-path: | ||||
|     name: Test pip (Python ${{ matrix.python-version}}, ${{ matrix.os }}) | ||||
|     runs-on: ${{ matrix.os }} | ||||
| @@ -59,7 +81,7 @@ jobs: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         python-version: ['3.8', '3.9', 'pypy-3.7-v7.x'] | ||||
|         python-version: ['3.9', 'pypy-3.7-v7.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup Python | ||||
| @@ -78,7 +100,7 @@ jobs: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest] | ||||
|         python-version: ['3.8', '3.9', 'pypy-3.7-v7.x'] | ||||
|         python-version: ['3.9', 'pypy-3.7-v7.x'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup Python | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Brian Cristante
					Brian Cristante