fix: pull version into separate file to avoid circular import (#75) #141
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: Tests | |
on: | |
push: | |
branches: | |
- 'master' | |
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 |