Merge pull request #17 from DEFRA/squid-improvement #14
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| env: | |
| AWS_REGION: eu-west-2 | |
| AWS_ACCOUNT_ID: "094954420758" | |
| jobs: | |
| build: | |
| if: github.run_number != 1 | |
| name: CDP-build-workflow | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Build and Publish | |
| uses: DEFRA/cdp-build-action/build@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Test code and Create Test Coverage Reports | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| cache: 'pip' | |
| - run: | | |
| pipx install uv | |
| uv sync --frozen | |
| uv run ruff check | |
| uv run pytest | |
| # - name: SonarCloud Scan | |
| # uses: SonarSource/sonarcloud-github-action@master | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |