Skip to content

Commit

Permalink
added ci - gitaction for lin, win and mac
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorekLoschinin committed Jan 13, 2025
1 parent 5350bcb commit 35d3b21
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test on Linux

on:
push:
branches: ["dev"]

pull_request:
branches: ["main"]


jobs:
test_lin:

runs-on: ubuntu-latest
strategy:
fail-fast: false

matrix:
python-version: ["3.10", "3.11", "3.12"]

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest
34 changes: 34 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test on MacOs

on:
push:
branches: ["dev"]

pull_request:
branches: ["main"]


jobs:
test_mac:

runs-on: macos-latest
strategy:
fail-fast: false

matrix:
python-version: ['3.10', '3.11', '3.12']

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest
34 changes: 34 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test on Windows

on:
push:
branches: ["dev"]

pull_request:
branches: ["main"]


jobs:
test_wind:

runs-on: windows-latest
strategy:
fail-fast: false

matrix:
python-version: ['3.10', '3.11', '3.12']

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest

0 comments on commit 35d3b21

Please sign in to comment.