Skip to content

Commit

Permalink
Create run_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jan 23, 2024
1 parent d728869 commit 02d85ba
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Run Tests

on: [push, pull_request]

jobs:
run-tests:
name: "Test (${{matrix.os}}, Python ${{ matrix.python-version }})"
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install Python requirements
run: pip install --upgrade --upgrade-strategy eager .

- name: Install pytest
run: |
pip install pytest
- name: Run tests
run: |
pytest

0 comments on commit 02d85ba

Please sign in to comment.