no 3.10 for DefElement #17
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: CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 7 * * 1" | |
| jobs: | |
| run-tests: | |
| name: Style checks and tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v4 | |
| - name: Run mypy checks | |
| run: | | |
| pip install mypy | |
| python3 -m mypy . | |
| - run: | | |
| pip install ruff | |
| python3 -m ruff check . | |
| python3 -m ruff format --check . | |
| name: Run ruff checks | |
| - run: pip install .[style,test] | |
| name: Install simplefem | |
| - run: python3 -m pytest test | |
| name: Run unit tests | |
| defelement-verification: | |
| name: Check that DefElement verification passes | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v4 | |
| - run: pip install . | |
| name: Install simplefem | |
| - name: Clone DefElement | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ./defelement | |
| repository: DefElement/DefElement | |
| ref: main | |
| - name: Install DefElement | |
| run: | | |
| cd defelement | |
| python3 -m pip install . | |
| - name: Check that simplefem verification passes | |
| run: | | |
| cd defelement | |
| python3 verify.py --fail-on-missing-libraries --impl simplefem --assert-passing --print-reasons |