Skip to content

feat: update to python 3.11 #41

feat: update to python 3.11

feat: update to python 3.11 #41

name: "PullRequest-Push"
on:
workflow_dispatch:
pull_request:
push:
branches:
- "main"
jobs:
build:
uses: ZeroGachis/.github/.github/workflows/build-image.yml@v4
with:
image_name: magicparse
dockerfile_context: .
vault_url: ${{ vars.PULLREQUEST_VAULT_URL }}
vault_github_actions_role: ${{ vars.VAULT_GITHUB_ACTIONS_ROLE }}
regitry_url: ghcr.io
secrets: inherit
static-metrics:
needs:
[
build,
]
uses: ZeroGachis/.github/.github/workflows/run-docker.yml@v4
with:
image_url: ${{ needs.build.outputs.image-url }}
workdir: /app
vault_enabled: false
tailscale_enabled: false
run_command: |
poetry install --no-interaction --no-ansi --no-root --only dev
poetry run black magicparse/ --check --diff
poetry run flake8
secrets: inherit
unit-tests:
needs:
[
build,
]
uses: ZeroGachis/.github/.github/workflows/run-docker-with-db.yml@v4
with:
image_url: ${{ needs.build.outputs.image-url }}
workdir: /app
run_command: |
poetry install --no-interaction --no-ansi --no-root --only dev
poetry run pytest --verbose --junit-xml reports/unit_tests_results.xml
vault_enabled: false
tailscale_enabled: false
enable_test_report: true
test_report_name: "UT Report"
test_report_path: reports/unit_tests_results.xml
test_report_format: java-junit
secrets: inherit
detroy:
if: always()
needs:
[
build,
unit-tests,
static-metrics,
]
uses: ZeroGachis/.github/.github/workflows/delete-docker-image.yml@v4
with:
image_name: magicparse
image_version: ${{ needs.build.outputs.image-version }}
vault_url: ${{ vars.PULLREQUEST_VAULT_URL }}
vault_github_actions_role: ${{ vars.VAULT_GITHUB_ACTIONS_ROLE }}
secrets: inherit