Skip to content

Az

Az #22

Workflow file for this run

name: Python CI
on:
push:
branches:
- main
- yy
pull_request:
branches:
- main
- yy
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Run tests
run: |
python -m unittest testsuite.py
- name: Set Environment Variables
id: stamp
run: |
echo "COMMIT_HASH=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
echo "BRANCH_NAME=${{ github.ref }}" >> $GITHUB_ENV
echo "BUILD_STAMP=${COMMIT_HASH}-${BRANCH_NAME}" >> $GITHUB_ENV
- name: Display Build Stamp
run: |
echo "Build Stamp: ${{ env.BUILD_STAMP }}"