Skip to content

Merge pull request #354 from simvue-io/pre-commit-ci-update-config #105

Merge pull request #354 from simvue-io/pre-commit-ci-update-config

Merge pull request #354 from simvue-io/pre-commit-ci-update-config #105

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Simvue Client (Python Versions)
on:
push:
branches: [ "main", "dev", "hotfix/update-ci" ]
pull_request:
branches: [ "main", "dev", "hotfix/update-ci" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: "${{ matrix.python-version }}"
- name: Install dependencies
run: python -m pip install poetry
- name: Test with pytest
run: |
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
poetry install --all-extras
poetry run pytest tests/unit/ tests/refactor/ -m 'not scenario'