Skip to content

Update pylag-package-conda-linux.yml #13

Update pylag-package-conda-linux.yml

Update pylag-package-conda-linux.yml #13

name: Build and test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: "pylag_test"
auto-activate-base: false
channels: conda-forge,JimClark
auto-update-conda: true
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- name: Show conda env
shell: bash -l {0}
run: |
conda info
conda list
- name: Install local changes
shell: bash -l {0}
run: |
pip install .
python -c "import pylag; print(f'PyLag Git commit: {pylag.version.git_revision}')"
# - name: Lint
# shell: bash -l {0}
# run: |
# conda install flake8
# python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash -l {0}
run: |
conda install pytest
pytest