add poetry to test yml

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

@ -1,4 +1,6 @@
---
name: test name: test
- jobs: poetry testing
on: on:
push: push:
@ -21,8 +23,30 @@ env:
test_type: test_type:
- "core" - "core"
- "extended" - "extended"
name: Install Poetry steps:
uses: snok/install-poetry@v1 - 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 }} name: Python ${{ matrix.python-version }} ${{ matrix.test_type }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

Loading…
Cancel
Save