Skip to content

FIX: reset random seed after setting random_state (#331) #687

FIX: reset random seed after setting random_state (#331)

FIX: reset random seed after setting random_state (#331) #687

Workflow file for this run

# This workflow will perform unit tests
name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- maintenance/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
ubuntu:
name: Unit tests ubuntu-latest py-${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential gfortran
python -m venv test
. test/bin/activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build
run: |
. test/bin/activate
make
- name: Run Tests
run: |
. test/bin/activate
make test