Skip to content

Merge pull request #83 from davidkastner/cluster-submit-bug #493

Merge pull request #83 from davidkastner/cluster-submit-bug

Merge pull request #83 from davidkastner/cluster-submit-bug #493

Workflow file for this run

name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * 0"
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
python-version: [3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
create-args: >-
python=${{ matrix.python-version }}
channels: conda-forge,defaults
init-shell: bash
- name: Install package
shell: bash -l {0}
run: |
python -m pip install . --no-deps
micromamba list
- name: Run tests
shell: bash -l {0}
run: |
pytest -v --cov=pyqmmm --cov-report=xml --color=yes pyqmmm/tests/
- name: CodeCov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}