Bump pytest from 6.2.2 to 9.0.3 #115
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and publish the package to internal PDBe PyPi registry | |
| env: | |
| PACKAGE_NAME: pdbe_complexes | |
| on: [ push ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| python-version: [3.7] | |
| 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 dependencies | |
| run: | | |
| pip install -r dev-requirements.txt | |
| pip install -r requirements.txt | |
| - name: Run Tests | |
| run: | | |
| make test | |
| - name: Upload coverage to Codecov | |
| if: github.ref == 'refs/heads/main' | |
| uses: codecov/codecov-action@v1 | |
| with: | |
| file: ./coverage/cobertura-coverage.xml | |
| flags: unittests | |
| name: codecov-${{ env.PACKAGE_NAME }} | |
| fail_ci_if_error: true | |
| - name: Create distribution | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| pip install wheel | |
| python setup.py sdist bdist_wheel | |
| - name: Upload artifact for publish job | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: ${{ env.PACKAGE_NAME }}-app | |
| path: dist/ | |
| publish: | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download artifact from build job | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: ${{ env.PACKAGE_NAME }}-app | |
| path: dist/ | |
| - name: Publish to internal PyPi | |
| run: | | |
| pip install twine | |
| TWINE_PASSWORD=${{ secrets.TWINE_PASSWORD }} TWINE_USERNAME=${{ secrets.TWINE_USERNAME }} python -m twine upload --repository-url ${{ secrets.PIP_INDEX_URL }} dist/* | |
| continue-on-error: false |