DAY_OF_WEEK #4
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: CI workflow | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
DAY_OF_WEEK: Monday | |
jobs: | |
greeting_job: | |
runs-on: ubuntu-latest | |
env: | |
Greeting: Hello | |
steps: | |
- name: "Say Hello Mona it's Monday" | |
run: echo "$Greeting $First_Name. Today is $DAY_OF_WEEK!" | |
env: | |
First_Name: Mona | |
# build: | |
# runs-on: ubuntu-latest | |
# container: python:3.9-slim | |
# steps: | |
# - name: checkout | |
# uses: actions/checkout@v3 | |
# - name: Install dependencies | |
# run: | | |
# python -m pip install --upgrade pip | |
# pip install -r requirements.txt | |
# - name: Lint with flake8 | |
# run: | | |
# flake8 service --count --select=E9,F63,F7,F82 --show-source --statistics | |
# flake8 service --count --max-complexity=10 --max-line-length=127 --statistics | |
# - name: Run unit tests with nose | |
# run: | | |
# nosetests -v --with-spec --spec-color --with-coverage --cover-package=app | |
# - uses: hashicorp/setup-terraform@v2 | |
# with: | |
# terraform_version: 1.1.7 | |
# - run: terraform init | |
# - id: plan | |
# run: terraform plan -no-color | |
# - run: echo ${{ steps.plan.outputs.stdout }} | |
# - run: echo ${{ steps.plan.outputs.stderr }} | |
# - run: echo ${{ steps.plan.outputs.exitcode }} |