Merge pull request #15 from SiLab-Bonn/development #32
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 is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: | |
- master | |
- development | |
pull_request: | |
branches: | |
- master | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
tests: | |
name: Testing on Python ${{matrix.python-version}} | ${{matrix.sim}} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-latest] | |
python-version: ["3.7", "3.10", "3.11"] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Anaconda ${{matrix.python-version}} setup | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{matrix.python-version}} | |
- name: Dependency installation | |
shell: bash -l {0} | |
run: | | |
conda info -a | |
conda install numpy scipy pyyaml matplotlib pytest jupyter pandas | |
pip install -r requirements.txt | |
- name: Package installation | |
shell: bash -l {0} | |
run: | | |
python setup.py develop | |
- name: Testing | |
shell: bash -l {0} | |
run: pytest |