Upgrade dependencies + expose type annotations #53
Workflow file for this run
This file contains 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: "PullRequest-Push" | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
jobs: | |
releasetag: | |
uses: ZeroGachis/.github/.github/workflows/releasetag.yml@v4 | |
build: | |
needs: releasetag | |
uses: ZeroGachis/.github/.github/workflows/build-image.yml@v4 | |
with: | |
image_name: nurse | |
dockerfile_context: . | |
vault_enabled: false | |
tailscale_enabled: false | |
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 }} | |
tailscale_enabled: false | |
vault_enabled: false | |
workdir: /app | |
run_command: | | |
ruff check --diff ./ | |
ruff format --check --diff ./ | |
echo "import nurse" | |
python -c "import nurse" | |
env | sort | |
python -c "import sys; print(sys.path)" | |
secrets: inherit | |
# unit-tests: | |
# needs: | |
# [ | |
# build, | |
# ] | |
# uses: ZeroGachis/.github/.github/workflows/run-pytest.yml@v4 | |
# with: | |
# image_url: ${{ needs.build.outputs.image-url }} | |
# workdir: /app | |
# directory_to_test: tests/ | |
# env_django_settings_module: todo-make-this-optional | |
# secrets: inherit | |
unit-tests: | |
needs: | |
[ | |
build, | |
] | |
uses: ZeroGachis/.github/.github/workflows/run-docker.yml@v4 | |
with: | |
image_url: ${{ needs.build.outputs.image-url }} | |
tailscale_enabled: false | |
vault_enabled: false | |
workdir: /app | |
run_command: | | |
echo "root dir" | |
ls -al | |
echo "nurse dir" | |
ls -al nurse | |
echo "import nurse" | |
python -c "import nurse" | |
env | sort | |
python -c "import sys; print(sys.path)" | |
echo "tests" | |
pytest --verbose --cov --junit-xml reports/unit_tests_results.xml tests/ | |
secrets: inherit | |
detroy: | |
if: always() | |
needs: | |
[ | |
releasetag, | |
build, | |
unit-tests, | |
static-metrics, | |
] | |
uses: ZeroGachis/.github/.github/workflows/delete-docker-image.yml@v1 | |
with: | |
image_name: nurse | |
image_version: ${{ needs.build.outputs.image-version }} | |
secrets: inherit |