Testing Python versions on ubuntu-latest #1
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: Testing Python versions on ubuntu-latest | |
| on: | |
| schedule: | |
| - cron: '0 12 * * 0' | |
| workflow_dispatch: # Allows manual triggering | |
| env: | |
| SKBUILD_BUILD_OPTIONS: --verbose | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install build requirements | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install build-essential cmake | |
| pip install --upgrade -r build_requirements.txt | |
| - name: make | |
| shell: bash | |
| run: | | |
| pip install . | |
| - name: Install test requirements & set configuration variables | |
| run: | | |
| pip install -r test_requirements.txt | |
| python -m casm.bset --autoconfigure --envfile "$GITHUB_ENV" | |
| - name: test | |
| shell: bash | |
| run: | | |
| python -m pytest -rsap -x -m "not requires_ase" tests | |
| - name: make with ase | |
| shell: bash | |
| run: | | |
| pip install ".[ase]" | |
| - name: test with requires_ase | |
| shell: bash | |
| run: | | |
| python -m pytest -rsap -x -m "requires_ase" tests |