Bump actions/setup-python from 5 to 6 #80
Workflow file for this run
  
    
      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, pull_request] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12'] | |
| # Don't cancel other jobs if one of them fails | |
| fail-fast: false | |
| services: | |
| postgres: | |
| image: postgres:12 | |
| rabbitmq: | |
| image: rabbitmq:latest | |
| ports: | |
| - 5672:5672 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Cache Python dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('**/setup.json') }} | |
| restore-keys: | |
| pip-${{ matrix.python-version }}-tests | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Python dependencies | |
| run: pip install -e .[tests] | |
| - name: Run pytest | |
| env: | |
| AIIDA_WARN_v3: 1 | |
| run: pytest -sv tests |