added preliminary day2 solution, branched off day1 #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: Test Matrix | ||
| on: [push] | ||
| jobs: | ||
| code-quality: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout the code | ||
| uses: actions/checkout@v6 | ||
| - name: Install pixi | ||
| uses: prefix-dev/setup-pixi@v0.9.3 | ||
| with: | ||
| pixi-version: v0.62.2 # good to pin this since pixi is not 1.0 yet! | ||
| - name: look for syntax errors with ruff | ||
| run: pixi run ruff check | ||
| unit-tests: | ||
| runs-on: ${{ matrix.os }} | ||
| needs: code-checks # don't bother running tests if code-checks fails. | ||
| strategy: | ||
| fail-fast: false # don't stop all jobs if one fails | ||
| matrix: | ||
| os: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| - windows-latest | ||
| environment: | ||
| - prod | ||
| - prod314 | ||
| - prod312 | ||
| steps: | ||
| - name: Checkout the code | ||
| uses: actions/checkout@v6 | ||
| - name: Install pixi | ||
| uses: prefix-dev/setup-pixi@v0.9.3 | ||
| with: | ||
| pixi-version: v0.62.2 | ||
| environments: ${{ matrix.environment }} | ||
| - run: pixi run -e ${{ matrix.environment }} pytest | ||