Skip to content

Bump version to 0.1.1 #17

Bump version to 0.1.1

Bump version to 0.1.1 #17

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v4 # Updated from v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5 # Updated from v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r requirements-dev.txt
- name: Format code
run: |
black src tests
isort src tests
- name: Check formatting
run: |
black --check src tests
isort --check-only src tests
- name: Run linting
run: |
flake8 src tests
mypy src
- name: Run tests
run: |
pytest --cov=src tests/ -v
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel
- name: Build package
run: python -m build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/