Skip to content

Commit

Permalink
testing unittest workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdual committed Feb 23, 2024
1 parent a6bdc32 commit e3134c0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: PyPi release

on:
release:
types: [published]
types: [ published ]

jobs:
release-build:
runs-on: ubuntu-latest
Expand All @@ -15,6 +17,7 @@ jobs:

- name: Build release distributions
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m build
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Python unittest

on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ '3.7', '3.8', '3.9', '3.10' ]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Run unittest
run: |
python -m pip install --upgrade pip
python -m unittest discover

0 comments on commit e3134c0

Please sign in to comment.