Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: CD
on:
push:
branches: ["main"]
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run unit tests on ${{ matrix.os }}
run: |
python -m unittest circle.py
python -m unittest rectangle.py
python -m unittest triangle.py
python -m unittest square.py