diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..e4452b5 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,39 @@ +name: Test Pairwise Compare + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + run-tests: + + runs-on: ubuntu-latest + + + strategy: + matrix: + python-version: ["3.10", "3.11"] + + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install Poetry + run: | + python -m pip install --user poetry + export PATH="$HOME/.local/bin:$PATH" + + - name: Install dependencies with Poetry + run: | + poetry install --no-interaction + + - name: Test with pytest + run: | + poetry run pytest