Skip to content

Add click-to-run entry point and point README at the published repo #1

Add click-to-run entry point and point README at the published repo

Add click-to-run entry point and point README at the published repo #1

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run unit tests
run: python -m unittest discover -s tests -t . -v
benchmark:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Reproduce the benchmark and fail on any regression
run: python -m cartpole.cli bench --output artifacts --check
- uses: actions/upload-artifact@v4
with:
name: benchmark
path: artifacts/