Rename workflow to include information #42
This file contains 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: Test MDANSE | ||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
test: | ||
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: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install pytest | ||
run: python -m pip install pytest pytest-timeout | ||
- 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 GUI unit tests | ||
working-directory: MDANSE_GUI/Tests/UnitTests | ||
run: python -m pytest |