diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06ee534e..d7a33ccc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,23 +1,21 @@ name: Testing -on: [push, pull_request] - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: build: + name: Test / Unit Test strategy: matrix: os: - "ubuntu-22.04" - "ubuntu-latest" - python: - - "3.8" runs-on: ${{ matrix.os }} steps: @@ -49,4 +47,4 @@ jobs: poetry build && poetry run python setup.py install - name: Run test - run: xvfb-run python -m unittest tests/test_render.py + run: xvfb-run poetry run python -m unittest tests/test_render.py diff --git a/tests/test_render.py b/tests/test_render.py index f0d26cab..2a8ebc1a 100644 --- a/tests/test_render.py +++ b/tests/test_render.py @@ -1,6 +1,5 @@ from unittest import TestCase -import evogym.envs import gym from evogym import sample_robot