Update docs #144
Workflow file for this run
This file contains hidden or 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: tests | |
on: | |
push: | |
branches: | |
- main | |
- final_project | |
- workflows | |
pull_request: | |
branches: | |
- main | |
- final_project | |
jobs: | |
test: | |
name: Testing using pytest | |
runs-on: ubuntu-latest | |
container: | |
image: cupy/cupy:v13.4.0 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Clean previous builds | |
run: rm -rf build dist *.egg-info | |
- name: Install system dependencies | |
run: | | |
apt-get update && apt-get install -y python3.10-venv python3-pip cmake | |
- name: Install MPI (OpenMPI) | |
run: apt-get update && apt-get install -y libopenmpi-dev openmpi-bin | |
- name: Install additional dependencies | |
run: | | |
python3.10 -m venv venv | |
source venv/bin/activate | |
python3.10 -m pip install --no-cache-dir . | |
shell: bash -e {0} | |
- name: Test with pytest | |
run: | | |
source venv/bin/activate | |
mkdir -p build | |
cmake -B build -S . | |
cd build | |
make | |
cd .. | |
python3.10 -m pytest | |
shell: bash -e {0} |