Skip to content

Fix DCF 3 having enumerated values (was assuming integers), Add initi… #60

Fix DCF 3 having enumerated values (was assuming integers), Add initi…

Fix DCF 3 having enumerated values (was assuming integers), Add initi… #60

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
workflow_dispatch:
branches: ["main", "dev"]
push:
branches: ["main", "dev"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
miniconda:
name: Miniconda ${{ matrix.os }} python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: [ '3.8', '3.10' ]
# all tests fail if one fails, this may allow other tests to continue
# fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ENVs100py
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- shell: bash -l {0}
run: |
conda install --freeze-installed pytest
conda env export --no-builds
pip install -U pip
python setup.py install
# - 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: |
pytest