Skip to content

add safety-gymnasium envs training curves #13

add safety-gymnasium envs training curves

add safety-gymnasium envs training curves #13

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- dev
pull_request:
paths:
- setup.py
- tests/**
- fsrl/**
- .github/workflows/tests.yml
# Allow to trigger the workflow manually
workflow_dispatch:
permissions:
contents: read
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
name: Test for Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.10"]
fail-fast: false
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
update-environment: true
- name: Upgrade pip
run: |
python -m pip install --upgrade pip setuptools
- name: Install FSRL
run: |
python -m pip install -e '.[dev]'
- name: Test with pytest
run: |
pytest tests -s --ignore-glob='*profile.py' --ignore="tests/3rd_party" --cov=fsrl --cov-report=xml --cov-report=term-missing --durations=0 -v --color=yes
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false