Skip to content

modify pytest

modify pytest #562

Workflow file for this run

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 wandb
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 }}"