Skip to content

Commit

Permalink
Rename workflow to include information
Browse files Browse the repository at this point in the history
  • Loading branch information
oerc0122 committed Mar 5, 2025
1 parent 74f34be commit 26dd50c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
name: Install MDANSE_GUI on ${{ matrix.os }}
name: (${{ matrix.os }}-${{ matrix.python-version }}) Install MDANSE & MDANSE_GUI
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
Expand All @@ -24,7 +24,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: install MDANSE
run: (cd MDANSE && python -m pip install .)
working-directory: MDANSE
run: python -m pip install .

- name: install MDANSE_GUI
run: (cd MDANSE_GUI && python -m pip install .)
working-directory: MDANSE_GUI
run: python -m pip install .
23 changes: 16 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ on:

jobs:
test:
name: Build MDANSE and run tests on ${{ matrix.os }}
name: (${{ matrix.os }}-${{ matrix.python-version }}) Build MDANSE and run tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
# os: [ubuntu-20.04, windows-2019, macOS-11, ubuntu-latest, windows-latest, macOS-latest]

if: |
!contains( github.ref, 'legacy' )
steps:
Expand All @@ -27,10 +28,18 @@ jobs:
- name: Install pytest
run: python -m pip install pytest pytest-timeout

- name: install MDANSE
run: (cd MDANSE && python -m pip install .)
- name: Install MDANSE
working-directory: MDANSE
run: python -m pip install .

- name: Run unit tests
working-directory: MDANSE/Tests/UnitTests
run: python -m pytest

- name: Install MDANSE_GUI
working-directory: MDANSE_GUI
run: python -m pip install .

- name: run unit tests
run: |
cd MDANSE/Tests/UnitTests
python -m pytest
- name: Run GUI unit tests
working-directory: MDANSE_GUI/Tests/UnitTests
run: python -m pytest

0 comments on commit 26dd50c

Please sign in to comment.