Merge pull request #40 from GlobalFishingWatch/feature/bulk-downloads… #89
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: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| ci: | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - name: Checkout codes | |
| id: checkout-codes | |
| uses: actions/[email protected] | |
| - name: Setup python | |
| id: setup-python | |
| uses: actions/[email protected] | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: x64 | |
| - name: Install dependencies | |
| id: install-dependencies | |
| run: make install | |
| - name: Run pre-commit checks | |
| id: run-pre-commit-checks | |
| run: make pre-commit | |
| - name: Run tests | |
| id: run-tests | |
| run: make test | |
| - name: Upload coverage reports to Codecov | |
| id: upload-coverage-reports-to-codecov | |
| uses: codecov/[email protected] | |
| if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true |