|
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main] |
| 6 | + pull_request: |
| 7 | + branches: [main] |
| 8 | + |
| 9 | +jobs: |
| 10 | + lint: |
| 11 | + name: Lint & Format (Python ${{ matrix.python-version }}) |
| 12 | + runs-on: ubuntu-latest |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + python-version: ["3.12"] |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v5 |
| 18 | + - uses: actions/setup-python@v6 |
| 19 | + with: |
| 20 | + python-version: ${{ matrix.python-version }} |
| 21 | + - run: pip install -e ".[dev]" |
| 22 | + - run: ruff check . |
| 23 | + - run: ruff format --check . |
| 24 | + |
| 25 | + typecheck: |
| 26 | + name: Type Check (Python ${{ matrix.python-version }}) |
| 27 | + runs-on: ubuntu-latest |
| 28 | + strategy: |
| 29 | + matrix: |
| 30 | + python-version: ["3.12"] |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v5 |
| 33 | + - uses: actions/setup-python@v6 |
| 34 | + with: |
| 35 | + python-version: ${{ matrix.python-version }} |
| 36 | + - run: pip install -e ".[dev]" |
| 37 | + - run: mypy |
| 38 | + |
| 39 | + test: |
| 40 | + name: Tests (Python ${{ matrix.python-version }}) |
| 41 | + runs-on: ubuntu-latest |
| 42 | + strategy: |
| 43 | + matrix: |
| 44 | + python-version: ["3.12"] |
| 45 | + env: |
| 46 | + CSCS_API_KEY: ${{ secrets.CSCS_API_KEY }} |
| 47 | + FIRECREST_ACCOUNT: ${{ secrets.FIRECREST_ACCOUNT }} |
| 48 | + FIRECREST_CLIENT_ID: ${{ secrets.FIRECREST_CLIENT_ID }} |
| 49 | + FIRECREST_CLIENT_SECRET: ${{ secrets.FIRECREST_CLIENT_SECRET }} |
| 50 | + FIRECREST_PARTITION: ${{ secrets.FIRECREST_PARTITION }} |
| 51 | + FIRECREST_SYSTEM: ${{ secrets.FIRECREST_SYSTEM }} |
| 52 | + FIRECREST_TOKEN_URI: ${{ secrets.FIRECREST_TOKEN_URI }} |
| 53 | + FIRECREST_URL: ${{ secrets.FIRECREST_URL }} |
| 54 | + FIRECREST_USERNAME: ${{ secrets.FIRECREST_USERNAME }} |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v5 |
| 57 | + - uses: actions/setup-python@v6 |
| 58 | + with: |
| 59 | + python-version: ${{ matrix.python-version }} |
| 60 | + - run: pip install -e ".[dev]" |
| 61 | + - run: pytest --cov --cov-report=term-missing -n auto |
0 commit comments