Make sure the first snapshot time is always logged. #59
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
# This workflow tests tensorflow installation and runs a policy network. | |
name: tf | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
conda install -y python=3.10 | |
conda env update --file flybody.yml --name base | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install .[tf] | |
- name: Test with pytest | |
run: | | |
export MUJOCO_GL="glfw" | |
pytest tests/test-tf.py |