-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (38 loc) · 1.15 KB
/
legacy_unit_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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"