Bump pypa/gh-action-pypi-publish in /.github/workflows #55
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: Automated tests | |
| on: push | |
| jobs: | |
| test: | |
| name: Execute all automated tests | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.8' | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Chache pip dependencies | |
| uses: actions/cache@v2 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Chache GUM corpus | |
| uses: actions/cache@v2 | |
| with: | |
| path: gum.zip | |
| key: ${{ runner.os }}-gum-${{ hashFiles('package/download-gum-corpus.sh') }} | |
| - name: Install dependencies | |
| run: pip install cffi networkx setuptools | |
| - name: Run setup.py | |
| run: python setup.py build | |
| - name: Download GUM test corpus | |
| run: "./package/download-gum-corpus.sh" | |
| - name: Run documentation tests | |
| run: "./doctest_runner.py" | |
| - name: Run unit tests | |
| run: python -m unittest |