add poetry to test yml

pull/177/head
evelynmitchell 1 year ago
parent ae5f2eaecd
commit 9f7e20b06e

@ -1,4 +1,6 @@
---
name: test
- jobs: poetry testing
on:
push:
@ -21,8 +23,30 @@ env:
test_type:
- "core"
- "extended"
name: Install Poetry
uses: snok/install-poetry@v1
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: "snok/install-poetry@v1"
with:
python-version: ${{ matrix.python-version }}
poetry-version: "1.4.2"
cache-key: ${{ matrix.test_type }}
install-command: |
if [ "${{ matrix.test_type }}" == "core" ]; then
echo "Running core tests, installing dependencies with poetry..."
poetry install
else
echo "Running extended tests, installing dependencies with poetry..."
poetry install -E extended_testing
fi
- name: Run ${{matrix.test_type}} tests
run: |
if [ "${{ matrix.test_type }}" == "core" ]; then
make test
else
make extended_tests
fi
shell: bash
name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
steps:
- uses: actions/checkout@v4

Loading…
Cancel
Save