This repository was archived by the owner on Jun 9, 2025. It is now read-only.
run tests on python 3.12 #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Apply SW4HW Standards | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, synchronize, edited] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
standardize: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Run pip install | |
shell: bash | |
run: | |
pip install -r ./requirements.txt | |
- name: Run tests | |
shell: bash | |
run: | |
python -m pytest tests/instruments --showlocals --full-trace --cov=pymeasure --cov-report xml:coverage.xml --cov-report term-missing --junitxml junit.xml | |
- name: Upload test artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: unit-test-artifacts-${{ github.head_ref }} | |
path: ./**/*.xml |