Remove 'otter' branch from deployment triggers #21
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
| # This is a basic workflow to help you get started with Actions | |
| # Name of the workflow | |
| name: build_and_test_package | |
| # Controls when the workflow will run | |
| on: | |
| # Triggers the workflow on push or pull request events but only for | |
| # the main branch | |
| push: | |
| branches: [ main, otter ] | |
| pull_request: | |
| branches: [ main, otter ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # A workflow run is made up of one or more jobs that can run | |
| # sequentially or in parallel | |
| jobs: | |
| # This workflow contains a single job called "build" | |
| build: | |
| # The type of runner that the job will run on | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.13"] | |
| # Steps represent a sequence of tasks that will be executed as | |
| # part of the job | |
| steps: | |
| # Checks-out your repository so your job can access it | |
| - name: Check-out repository | |
| uses: actions/checkout@v2 | |
| # Set up Python | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[tests] | |
| # Run pytest with coverage | |
| - name: Run tests with coverage | |
| run: | | |
| pytest --cov --cov-report=term --cov-branch |