mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 18:07:44 +03:00 
			
		
		
		
	Update publishing job
This commit is contained in:
		
							parent
							
								
									5f99e25a4d
								
							
						
					
					
						commit
						5c4a31a518
					
				
							
								
								
									
										47
									
								
								.github/workflows/publishing.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										47
									
								
								.github/workflows/publishing.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
name: Publishing
 | 
					name: Publishing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
 | 
					  workflow_dispatch:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
    tags:
 | 
					    tags:
 | 
				
			||||||
      - '*'
 | 
					      - '*'
 | 
				
			||||||
| 
						 | 
					@ -11,14 +12,14 @@ jobs:
 | 
				
			||||||
    name: Run tests
 | 
					    name: Run tests
 | 
				
			||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: pip install tox
 | 
					      - run: pip install tox
 | 
				
			||||||
      - run: tox
 | 
					      - run: tox
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
          TOXENV: "3.11"
 | 
					          TOXENV: 3.11
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  linters:
 | 
					  linters:
 | 
				
			||||||
    name: Run linters
 | 
					    name: Run linters
 | 
				
			||||||
| 
						 | 
					@ -27,10 +28,10 @@ jobs:
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        toxenv: [flake8, pydocstyle, mypy, pylint]
 | 
					        toxenv: [flake8, pydocstyle, mypy, pylint]
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: pip install tox
 | 
					      - run: pip install tox
 | 
				
			||||||
      - run: tox
 | 
					      - run: tox
 | 
				
			||||||
        env:
 | 
					        env:
 | 
				
			||||||
| 
						 | 
					@ -41,10 +42,10 @@ jobs:
 | 
				
			||||||
    needs: [tests, linters]
 | 
					    needs: [tests, linters]
 | 
				
			||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: python setup.py sdist
 | 
					      - run: python setup.py sdist
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
| 
						 | 
					@ -60,10 +61,10 @@ jobs:
 | 
				
			||||||
    env:
 | 
					    env:
 | 
				
			||||||
      CIBW_SKIP: cp27-win*
 | 
					      CIBW_SKIP: cp27-win*
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: pip install cibuildwheel==2.1.3
 | 
					      - run: pip install cibuildwheel==2.1.3
 | 
				
			||||||
      - run: cibuildwheel --output-dir wheelhouse
 | 
					      - run: cibuildwheel --output-dir wheelhouse
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
| 
						 | 
					@ -75,12 +76,12 @@ jobs:
 | 
				
			||||||
    needs: [tests, linters]
 | 
					    needs: [tests, linters]
 | 
				
			||||||
    runs-on: ubuntu-22.04
 | 
					    runs-on: ubuntu-22.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - name: Set up QEMU
 | 
					      - name: Set up QEMU
 | 
				
			||||||
        uses: docker/setup-qemu-action@v1
 | 
					        uses: docker/setup-qemu-action@v1
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: pip install cibuildwheel==2.1.3
 | 
					      - run: pip install cibuildwheel==2.1.3
 | 
				
			||||||
      - run: cibuildwheel --archs aarch64 --output-dir wheelhouse
 | 
					      - run: cibuildwheel --archs aarch64 --output-dir wheelhouse
 | 
				
			||||||
      - uses: actions/upload-artifact@v2
 | 
					      - uses: actions/upload-artifact@v2
 | 
				
			||||||
| 
						 | 
					@ -98,21 +99,21 @@ jobs:
 | 
				
			||||||
          path: dist
 | 
					          path: dist
 | 
				
			||||||
      - uses: pypa/gh-action-pypi-publish@master
 | 
					      - uses: pypa/gh-action-pypi-publish@master
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          user: __token__
 | 
					#          user: __token__
 | 
				
			||||||
          password: ${{ secrets.PYPI_API_TOKEN }}
 | 
					#          password: ${{ secrets.PYPI_API_TOKEN }}
 | 
				
			||||||
          # For publishing to Test PyPI, uncomment next two lines:
 | 
					          # For publishing to Test PyPI, uncomment next two lines:
 | 
				
			||||||
          # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
 | 
					          password: ${{ secrets.TEST_PYPI_API_TOKEN }}
 | 
				
			||||||
          # repository_url: https://test.pypi.org/legacy/
 | 
					          repository_url: https://test.pypi.org/legacy/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish-docs:
 | 
					  publish-docs:
 | 
				
			||||||
    name: Publish docs
 | 
					    name: Publish docs
 | 
				
			||||||
    needs: [publish]
 | 
					    needs: [publish]
 | 
				
			||||||
    runs-on: ubuntu-18.04
 | 
					    runs-on: ubuntu-18.04
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
      - uses: actions/setup-python@v2
 | 
					      - uses: actions/setup-python@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          python-version: "3.11"
 | 
					          python-version: 3.11
 | 
				
			||||||
      - run: pip install -r requirements-doc.txt
 | 
					      - run: pip install -r requirements-doc.txt
 | 
				
			||||||
      - run: pip install awscli
 | 
					      - run: pip install awscli
 | 
				
			||||||
      - run: pip install -e .
 | 
					      - run: pip install -e .
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user