ENC: Restore workflows #136
Workflow file for this run
This file contains 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
# 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 |