Skip to content

Commit

Permalink
add: automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ForceFledgling committed Nov 10, 2023
1 parent 6de20a4 commit 3589860
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/autotests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Run Tests

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

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

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Подставьте правильное имя вашего файла зависимостей
- name: Run tests
run: |
python -m pytest tests/
test-windows:
runs-on: windows-latest

strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

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

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Подставьте правильное имя вашего файла зависимостей
- name: Run tests
run: |
python -m pytest tests/

0 comments on commit 3589860

Please sign in to comment.