Skip to content

Merge pull request #4 from Ethanf1nk/main #56

Merge pull request #4 from Ethanf1nk/main

Merge pull request #4 from Ethanf1nk/main #56

Workflow file for this run

name: CI
on:
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
# The cookiecutter uses the "--initial-branch" flag when it runs git-init
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
# Weekly tests run on main by default:
# Scheduled workflows run on the latest commit on the default or base branch.
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
- cron: "0 0 * * 0"
jobs:
test:
name: SoAPy test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: [3.11]
steps:
- uses: actions/checkout@v3
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Create SoAPy environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: SoAPy
environment-file: devtools/conda-envs/SoAPy.yaml
python-version: ${{ matrix.python-version }}
- name: Install SoAPY
run: |
pip install -e .
- name: Test and generate coverage report
run: |
export KMP_DUPLICATE_LIB_OK=TRUEs
pip install coverage
pip install pytest
coverage run -m pytest
coverage xml
ls -l