Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow #32

Closed
wants to merge 10 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: run tests

on:
push:
branches:
- master
- workflow # for testing only

pull_request:
branches:
- master

jobs:
run-tests:
name: Test random policy
runs-on: ubuntu-20.04

steps:
- name: Checkout Repository
uses: actions/checkout@v2

# cache Conda packages to speed up workflow
- name: Cache Conda packages
uses: actions/cache@v2
with:
path: ~/.conda/pkgs
key: conda-${{ runner.os }}-${{ hashFiles('environment.yml') }}
restore-keys: |
conda-${{ runner.os }}-

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2 # You can use 'setup-conda' if needed
with:
activate-environment: imitation # Replace with your Conda environment name
environment-file: conda_environment.yaml # Specify the environment file if you have one

- name: Initialize Conda (non-interactive)
run: conda init --all -v # Use the '--all' flag to initialize all shells

- name: Setup robosuite macros
run: conda init --all -v & conda activate imitation & python ~/work/GraphDiffusionImitate/GraphDiffusionImitate/src/robosuite/robosuite/scripts/setup_macros.py

- name: Run test.py
run: conda init --all -v & conda run -n imitation python test.py --config-name=test_random_policy
Loading