Skip to content

installs python

installs python #4

Workflow file for this run

name: github actions
on:
push:
branches:
- 'gitactions'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: code checkout
uses: actions/checkout@v2
- name: install the gcloud cli
uses: google-github-actions/setup-gcloud@v0
with:
project_id: ${{ secrets.GOOGLE_PROJECT }}
service_account_key: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
export_default_credentials: true
- name: build and push the docker image
env:
GOOGLE_PROJECT: ${{ secrets.GOOGLE_PROJECT }}
run: |
gcloud auth configure-docker us-east1-docker.pkg.dev
docker build -t us-east1-docker.pkg.dev/clone-build-registry/clone-build-registry/nginx:latest .
docker push us-east1-docker.pkg.dev/clone-build-registry/clone-build-registry/nginx:latest
- name: get branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: install python
uses: actions/setup-python@v2
with:
python-version: '3.12.3'
- name: install dependencies
run:
pip install -e '.[dev]'
- name: run pytest
run:
pytest