Skip to content

Commit

Permalink
add tests workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorossi5 committed Dec 14, 2023
1 parent 4e50501 commit 1020618
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: pytest

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.10]

steps:
- uses: actions/checkout@v1
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
auto-update-conda: true
- name: Install dependencies and package
shell: bash --login {0}
run: |
conda info
python3 -m pip install --upgrade pip
pip install poetry
poetry install --without dev
- name: Test with pytest
shell: bash --login {0}
run: |
poetry install
python3 -m pytest --cov=src tests

0 comments on commit 1020618

Please sign in to comment.