Skip to content

Bump astlab from 0.2.0 to 0.3.0 #5

Bump astlab from 0.2.0 to 0.3.0

Bump astlab from 0.2.0 to 0.3.0 #5

Workflow file for this run

name: Check On Pull Request
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
venv:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
env:
OS: ubuntu
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Configure poetry
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project false
- name: Cache venv
id: cache
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install project dependencies
run: poetry install --all-extras
lint:
needs: venv
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@v4
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pip install poetry
- name: Configure poetry
run: |
poetry config virtualenvs.create true
poetry config virtualenvs.in-project false
- name: Cache venv
id: cache
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
fail-on-cache-miss: 'true'
- name: Show poetry env info
run: poetry env info
- name: Run mypy
run: poetry run mypy
- name: Run ruff check
run: poetry run ruff check
- name: Run ruff format
run: poetry run ruff format --check
# TODO: write & enable tests in CI
# test:
# needs: lint
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
# env:
# OS: ubuntu
# PYTHON: ${{ matrix.python-version }}
# steps:
# - uses: actions/checkout@v4
# - name: Install Python ${{ matrix.python-version }}
# uses: actions/setup-python@v5
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install poetry
# run: pip install poetry
# - name: Configure poetry
# run: |
# poetry config virtualenvs.create true
# poetry config virtualenvs.in-project false
# - name: Cache venv
# id: cache
# uses: actions/cache@v4
# with:
# path: ~/.cache/pypoetry
# key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
# fail-on-cache-miss: 'true'
# - name: Show poetry env info
# run: poetry env info
# - name: Run pytest
# run: poetry run pytest --cov-report=xml
# - name: Upload results to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# env_vars: OS,PYTHON