Skip to content

add launch gui via cli option #3

add launch gui via cli option

add launch gui via cli option #3

name: Run code tests
on:
workflow_dispatch:
push:
paths:
- '**'
branches:
- '**'
pull_request:
branches:
- main
- master
jobs:
test_layouts:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3
- name: setup python, 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: "pip"
#cache-dependency-path: pyproject.toml
- name: install Python 3.11 packages
run: |
pip install pytest pytest-cov
pip install -e .
- name: Test with pytest, Python 3.11
run: pytest app/siepic_testcreator
# can also specify python version if needed
- name: setup python, 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
#cache: "pip"
#cache-dependency-path: pyproject.toml
- name: install Python 3.10 packages
run: |
pip install pytest pytest-cov
pip install -e .
- name: Test with pytest, Python 3.10
run: pytest --cov=app/siepic_testcreator --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: github.repository_owner == 'SiEPIC'
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true