Skip to content

CI experiment

CI experiment #21

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI experiment
# Controls when the action will run.
on:
workflow_dispatch:
jobs:
test_run:
runs-on: [lab-mac]
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12"]
fail-fast: false
env:
TEST_FILE: client-sanity-${{github.run_number}}-${{ matrix.python_version }}
PYTHON_VERSION: ${{ matrix.python_version }}
TEST_FILE: Client_sanity_mac-${{github.run_number}}-${{ matrix.python_version }}

Check failure on line 19 in .github/workflows/CI_experiment.yml

View workflow run for this annotation

GitHub Actions / CI experiment

Invalid workflow file

The workflow is not valid. .github/workflows/CI_experiment.yml (Line: 19, Col: 7): 'TEST_FILE' is already defined
timeout-minutes: 120
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Setup python environment
run: |
$(brew --prefix)/bin/python${PYTHON_VERSION} -m venv venv
source venv/bin/activate
- name: Upgrade pip
run: |
venv/bin/pip install --upgrade pip
- name: install dependencies
run: |
venv/bin/pip install pytest
venv/bin/pip install pytest-qt
- name: install dependencies
run: |
venv/bin/pip list
- name: Install client
run: |
venv/bin/pip install -e .
- name: Run test suite
run: venv/bin/python -m pytest --verbose --html=${{env.TEST_FILE}}.html --junit-xml ${{env.TEST_FILE}}.xml
- name: Upload test file
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{env.TEST_FILE}}_results
if-no-files-found: warn
path: |
${{env.TEST_FILE}}.html
${{env.TEST_FILE}}.xml
assets/style.css
- name: Pretty print test results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: ${{env.TEST_FILE}}.xml
summary: true
title: Test results