Merge pull request #60 from firefly-cpp/dependabot/pip/werkzeug-3.1.6 #152
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: succulent | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| id: setup-python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Load cached Poetry installation | |
| id: cached-poetry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ runner.os == 'Windows' && 'C:\Users\runneradmin\.local' || runner.os == 'macOS' && '/Users/runner/.local' || '/home/runner/.local' }} | |
| key: poetry-${{ matrix.python-version }}-${{ runner.os }} | |
| - name: Install Poetry | |
| if: steps.cached-poetry.outputs.cache-hit != 'true' | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: 1.8.3 | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| installer-parallel: true | |
| - name: Add Poetry to PATH for bash (Windows) | |
| if: runner.os == 'Windows' | |
| shell: bash | |
| run: echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Configure poetry | |
| if: steps.cached-poetry.outputs.cache-hit == 'true' | |
| run: poetry config virtualenvs.in-project true | |
| - name: Check Poetry version | |
| run: poetry --version | |
| - name: Install dependencies | |
| run: poetry install --no-interaction --no-ansi | |
| - name: Run tests | |
| run: poetry run pytest -q |