Merged after step and task restart, added options for enabling parall… #556
This file contains 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: PyTest | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ouzi-dev/commit-status-updater@v1.1.0 # Updates the commit status badge to pending | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest | |
python -m pip install --editable="./allenact" | |
python -m pip install --editable="./allenact_plugins[all]" | |
python -m pip install pip install -r allenact_plugins/babyai_plugin/extra_requirements.txt # Required as babyai is not on PyPI | |
python -m pip install compress_pickle # Needed for some mapping tests | |
pip list | |
- name: Test with pytest | |
run: | | |
pytest --capture=tee-sys tests | |
- if: always() # Updates the commit status badge to the result of running the tests above | |
uses: ouzi-dev/commit-status-updater@v1.1.0 | |
with: | |
status: "${{ job.status }}" |