Skip to content

Commit

Permalink
馃殾 Add GitHub Action for auto testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ispaneli committed Mar 22, 2023
1 parent 370daca commit 01b6e4a
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/.workflows/tests.yaml
@@ -0,0 +1,48 @@
name: Tests

on:
push:
branches:
- "master"
- "develop"
pull_request:
branches:
- "master"
- "develop"

jobs:
run-test:
name: Test-${{ matrix.os }}-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python ver.${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel setuptools
pip install -r requirements/base.txt
- name: Run tests
run: |
python -m unittest

0 comments on commit 01b6e4a

Please sign in to comment.