Skip to content

Changelog and version number updates #854

Changelog and version number updates

Changelog and version number updates #854

Workflow file for this run

name: CI Tests
on:
push:
branches:
- "main"
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
cache-environment: true
cache-environment-key: env-envkey-${{ github.sha }}-${{ github.run_attempt }}
environment-file: basic_environment.yml
environment-name: xpsipy3
create-args: >-
python=${{ matrix.python-version }}
- name: mamba installs
run: |
micromamba install flake8 pytest
- name: Set up GCC
run: |
sudo apt-get install -y gcc
shell: bash -l {0}
- name: install gsl
run: |
sudo apt-get install -y libgsl-dev
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: install X-PSI package
run: |
python setup.py install
shell: bash -l {0}
env:
CC: gcc-10
- name: Test with pytest
run: |
pytest