From d08e4f6f99e63c79b692b4149d807f12479f804a Mon Sep 17 00:00:00 2001 From: Yazhini Date: Fri, 29 Nov 2024 11:25:49 +0100 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e6d094a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: McDevol + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v4 + - name: Install Miniconda + run: | + wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda + echo "$HOME/miniconda/bin" >> $GITHUB_PATH + source $HOME/miniconda/bin/activate + conda init + - name: Create Environment + run: | + conda env create --file environment.yml --name mcdevol_env + conda activate mcdevol_env + - name: Verify CUDA Installation + run: | + nvcc --version + nvidia-smi + - name: Lint with flake8 + run: | + conda activate mcdevol_env + conda install flake8 + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda activate mcdevol_env + conda install pytest + pytest