Skip to content

ENC: Restore workflows #136

ENC: Restore workflows

ENC: Restore workflows #136

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: (${{ matrix.os }} - py-${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04"]
python-version: ['3.9']
steps:
- uses: actions/checkout@v3
- name: Conda Setup
uses: s-weigand/setup-conda@v1
with:
conda-channels: conda-forge
- name: Install env
shell: bash
run: |
conda config --prepend channels conda-forge
conda config --set channel_priority strict
conda env create python=${{ matrix.python-version }} -f environment-dev.yml
source activate smash-dev
- name: Build and Install
run: |
. testenv/bin/activate
make
- name: Run Tests
run: |
. testenv/bin/activate
make test