Skip to content

Commit

Permalink
CI: add legacy unit tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Oct 30, 2023
1 parent eb91882 commit a0d49dc
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/legacy_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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

env:
ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }}

# 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

- name: "Set up Python"
uses: ansys/actions/_setup-python@main
with:
python-version: '3.10'
use-cache: false

- name: "Update pip"
run: python -m pip install -U pip

- name: "Install Python library"
run: python -m pip install .

- name: "Install test requirements"
run: python -m pip install .[tests]

- name: "Executing legacy unit tests"
run: |
pytest -m "legacy and unit"

0 comments on commit a0d49dc

Please sign in to comment.