Skip to content

CI : add legacy tests #6

CI : add legacy tests

CI : add legacy tests #6

name: Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
tags:
- 'v*'
branches:
- main
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
legacy-unit-test:
name: "Check legacy unit tests"
runs-on: [ windows, pyedb, self-hosted ]
steps:
- name: "Install Git and clone project"
uses: actions/checkout@v4
if: ${{ inputs.checkout == 'true' }}
- name: "Set up Python"
uses: ansys/actions/_setup-python@main
with:
python-version: '3.10'
use-cache: true
- name: "Update pip"
shell: bash
run: python -m pip install -U pip
- name: "Install Python library"
shell: bash
run: python -m pip install .
- name: "Install test requirements"
shell: bash
run: python -m pip install .[tests]
- name: "Executing legacy unit tests"
shell: bash
run: |
pytest -n 6 -m "legacy and unit"