Update dependency torch to v2.5.0 #3591
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
name: Unit tests | |
on: [push, pull_request] | |
env: | |
CODECHECK_PY_VER: 3.9 | |
jobs: | |
unit-tests: | |
name: Pytest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up python-${{ env.CODECHECK_PY_VER }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.CODECHECK_PY_VER }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: false | |
virtualenvs-in-project: false | |
version: 1.4.2 | |
- name: poetry install | |
run: | | |
poetry build && poetry install --with=dev --no-root | |
- name: Tests | |
run: | | |
PYTHONPATH=. python3 -m birdseye.baseline --help \ | |
PYTHONPATH=. python3 -m birdseye.dqn --help && \ | |
PYTHONPATH=. python3 -m birdseye.mcts --help && \ | |
PYTHONPATH=. python3 ./run_birdseye.py -h && \ | |
PYTHONPATH=. pytest -v -vv --cov-report term-missing --cov=. --cov=birdseye -c .coveragerc && \ | |
PATH=/home/runner/.local/bin:$PATH coverage report && \ | |
PATH=/home/runner/.local/bin:$PATH coverage xml | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
if: github.repository == 'iqtlabs/birdseye' |