Skip to content

Wait and retry if too many requests #101

Wait and retry if too many requests

Wait and retry if too many requests #101

Workflow file for this run

---
name: Continuous Integration
on:
- push
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checking out code from GitHub
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: |
pip-
- name: Install dependencies
run: |
pip install pipenv
pipenv sync --dev
- name: Run linters
run: pipenv run make
publish:
name: Publish a Python distribution to PyPI
runs-on: ubuntu-latest
needs: [test]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- name: Checking out code from GitHub
uses: actions/checkout@v2.3.1
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install pipenv
pipenv sync --dev
- name: Build the package
run: pipenv run make dist
- name: Publish the package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}