Skip to content

New OptaDOS Photoemission Module #94

New OptaDOS Photoemission Module

New OptaDOS Photoemission Module #94

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-python@v4.7.0
- uses: pre-commit/action@v3.0.0
build:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install \
gfortran \
libblas-dev \
liblapack-dev \
openmpi-bin \
libopenmpi-dev
pip install --upgrade pip
pip install \
numpy \
matplotlib \
- name: build
run: |
cd optados
sed -i "s/.*BUILD :=.*/BUILD := fast/" make.system
make
make tools
sed -i "s/.*COMMS_ARCH :=.*/COMMS_ARCH := mpi/" make.system
make
- name: run tests
run: |
cd optados/test-suite
./run_tests -n 1 -v --category=default