Skip to content

elpablete is testing #6

elpablete is testing

elpablete is testing #6

Workflow file for this run

name: Test
run-name: ${{ github.actor }} is testing
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
jobs:
test:
name: Test code
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Run in all these versions of Python
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install -r requirements-dev.txt
- name: Test with pytest
run: python -m pytest tests
mypy:
name: Type check code
runs-on: ubuntu-latest
strategy:
matrix:
# Run in all these versions of Python
python-version: ["3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install .
- name: Type check code
run: |
python -m mypy src
- name: Type check tests
run: |
python -m mypy tests