Add Tutorial 1 for ENSO Recipes CMORisation #77
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: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches-ignore: [main] | |
| workflow_dispatch: | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.39.5 | |
| - name: Run pre-commit | |
| run: pixi run -e dev pre-commit run --all-files | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/[email protected] | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.39.5 | |
| - name: Create default config file | |
| run: | | |
| mkdir -p ~/.mopper | |
| cat <<EOF > ~/.mopper/user.yml | |
| creator_name: "CI Bot" | |
| organisation: "ACCESS-NRI" | |
| creator_email: "[email protected]" | |
| creator_url: "https://example.com" | |
| EOF | |
| - name: List installed packages | |
| run: pixi list -e test | |
| - name: Run tests | |
| run: pixi run -e test pytest tests --cov=access_mopper --cov-report=xml | |
| - name: Upload code coverage | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.codecov_token }} | |
| files: ./coverage.xml |