Skip to content

Commit

Permalink
add github workflows for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
arturtoshev committed Jan 2, 2024
1 parent dd6ac20 commit 6e7143d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
push:
branches: [ "unit_tests" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
tests:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.in-project true
- name: Install dependencies
run: |
poetry install
- name: Run pytest
run: |
.venv/bin/pytest

0 comments on commit 6e7143d

Please sign in to comment.