Skip to content

Use 'swf-typed'

Use 'swf-typed' #75

name: test
on:
pull_request:
branches:
- master
push:
branches:
- master
- ver/*
tags:
- v*
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
include:
- os: ubuntu-20.04
python-version: '3.6'
- os: ubuntu-22.04
python-version: '3.7'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: pip install -U pip
- name: Install package
run: |
apt-get update && apt-get install -y git
pip --no-cache-dir install .
- name: Install dev requirements
run: pip install -r dev.requirements.txt
- name: Lint with black
run: |
black --check src/
- name: Lint imports with isort
run: isort --check src/
- name: Test with pytest
run: |
pip install -r tests/requirements.txt
pytest -vvra --cov seddy --cov-report xml --cov-report term
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}