Skip to content

rtd

rtd #130

Workflow file for this run

name: Tests
on:
push:
workflow_dispatch:
pull_request:
jobs:
lint:
name: Lint
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install Ruff
run: pip install ruff
- name: Run Tests
run: ruff check wbdata
types:
name: Types
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install Poetry Action
uses: snok/install-poetry@v1.3.4
- name: Install Dependencies
run: poetry install --only main,types
- name: Run mypy
run: poetry run mypy wbdata
test:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry Action
uses: snok/install-poetry@v1.3.4
- name: Install Dependencies
run: poetry install --only main,tests -E pandas
- name: Run Tests
run: poetry run pytest