Skip to content

Install from requirements and tests #27

Install from requirements and tests

Install from requirements and tests #27

name: Install from requirements and tests
on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize]
branches:
- 'main'
- 'release/v*'
paths:
- 'src/**'
- '!*.md'
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Free space
# Free space as indicated here : https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Install the project
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install .[test]
- name: Run tests
run: |
python -m pytest
python -m mypy --ignore-missing-imports --allow-redefinition --no-strict-optional -p src