changes to contrib #61
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: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: earthcode-library | |
| jobs: | |
| tests: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout earthcode-library | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| path: earthcode-library | |
| - name: Checkout open-science-catalog-metadata | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| repository: ESA-EarthCODE/open-science-catalog-metadata | |
| path: open-science-catalog-metadata | |
| - name: Install Pixi | |
| run: | | |
| curl -fsSL https://pixi.sh/install.sh | sh | |
| echo "$HOME/.pixi/bin" >> "$GITHUB_PATH" | |
| - name: Install dependencies | |
| run: pixi install --locked | |
| - name: Run test suite | |
| run: pixi run -e default pytest |