Skip to content

Custom Input: Add type conversion to float and warning #51

Custom Input: Add type conversion to float and warning

Custom Input: Add type conversion to float and warning #51

Workflow file for this run

name: Test Pull Request
on:
pull_request:
branches:
- main
# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}
jobs:
typecheck:
name: Typecheck GutenTAG on ubuntu with python 3.7
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
use-mamba: true
auto-update-conda: true
python-version: "3.7"
- name: Install dependencies
run: |
pip install -r requirements.dev
- name: Typcheck with mypy
run: |
python setup.py typecheck
test:
name: Test GutenTAG on ${{ matrix.os }} with python ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
matrix:
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macOS-latest]
python_version: ["3.7", "3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
use-mamba: true
auto-update-conda: true
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
pip install -r requirements.dev
- name: Test with pytest
run: |
python setup.py test
- name: Upload Coverage to Codecov
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v3
with:
files: coverage.xml
flags: unittests