Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yocho8 authored Dec 18, 2023
1 parent 59ff5bd commit 1ff0d2d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit 1ff0d2d

Please sign in to comment.