Skip to content

Update environment to allow for earlier pytest versions for now #6

Update environment to allow for earlier pytest versions for now

Update environment to allow for earlier pytest versions for now #6

name: Continuous Integration
on: [push, pull_request]
env:
POETRY_VERSION: 2.0.0
jobs:
lint_and_type_check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-interaction
- name: Run ruff
run: poetry run ruff check snappylapy
- name: Run mypy
run: poetry run mypy snappylapy
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: poetry install --no-interaction
- name: Run tests
run: poetry run pytest tests/