Updated test pipeline #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
paths: | |
- "elx/**" | |
- "tests/**" | |
- "poetry.lock" | |
- ".github/workflows/test.yaml" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
fail-fast: false | |
matrix: | |
python: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: x64 | |
cache: "pip" | |
cache-dependency-path: "poetry.lock" | |
- name: Set Poetry Python version | |
run: poetry env use ${{ matrix.python }} | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Install Dependencies | |
run: poetry install -E all | |
- name: Run test suite | |
run: poetry run pytest |