Skip to content

modified: .github/workflows/ci.yaml #16

modified: .github/workflows/ci.yaml

modified: .github/workflows/ci.yaml #16

Workflow file for this run

name: Run Tests
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
tests:
name: Tests
env:
ENV_NAME: simpleqe_tests
PYTHON: ${{ matrix.python-version }}
OS: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.8]
fail-fast: false
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Get Miniconda (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O $HOME/miniconda.sh;
bash $HOME/miniconda.sh -b -p $HOME/miniconda
- name: Get Miniconda (Mac OS)
if: matrix.os == 'macos-latest'
run: |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O $HOME/miniconda.sh;
bash $HOME/miniconda.sh -b -p $HOME/miniconda
- name: Setup Environment
run: |
export PATH="$HOME/miniconda/bin:$PATH";
./ci/install_conda.sh
- name: Install
run: |
export PATH="$HOME/miniconda/bin:$PATH";
source activate ${ENV_NAME};
pip install -e .
- name: Run Tests
run: |
export PATH="$HOME/miniconda/bin:$PATH";
source activate ${ENV_NAME};
pytest --cov-report xml:./coverage.xml
- name: Upload Coverage (Ubuntu)
if: matrix.os == 'ubuntu-latest' && success()
run: |
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}