Skip to content
22 changes: 6 additions & 16 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test-Publish

on:
push:
branches: ['master']
branches: [ 'master' ]
tags:
- 'v*' # only publish when pushing version tags (e.g., v1.0.0)
pull_request:
Expand All @@ -22,13 +22,13 @@ jobs:
# test for:
# * oldest supported version
# * latest available Python version
python-version: ['3.10', '3.14']
python-version: [ '3.12', '3.14' ]
# * Linux using ubuntu-latest
# * Windows using windows-latest
os: ['ubuntu-latest', 'windows-latest']
os: [ 'ubuntu-latest', 'windows-latest' ]
# * OM stable - latest stable version
# * OM nightly - latest nightly build
omc-version: ['stable', 'nightly']
omc-version: [ 'stable', 'nightly' ]

steps:
- uses: actions/checkout@v7
Expand Down Expand Up @@ -82,24 +82,14 @@ jobs:
click-to-expand: true
report-title: 'Test Report'

- name: Run pytest based on v4.0.0 compatibility layer
uses: pavelzw/pytest-action@v2
with:
verbose: true
emoji: true
job-summary: true
custom-arguments: '-v ${{ inputs.pytest_args }} ./tests_v400'
click-to-expand: true
report-title: 'Test Report (v4.0.0 compatibility layer)'

Publish:
name: Publish to PyPI
runs-on: ${{ matrix.os }}
needs: test
strategy:
matrix:
python-version: ['3.10']
os: ['ubuntu-latest']
python-version: [ '3.12' ]
os: [ 'ubuntu-latest' ]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v7
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
hooks:
- id: mypy
args: []
exclude: 'test|test_v400'
exclude: 'test'
additional_dependencies:
- pyparsing
- types-psutil
Expand Down
Loading
Loading