Skip to content

build

build #450

Workflow file for this run

name: build
on:
pull_request:
push:
schedule:
- cron: '0 0 1 * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
include:
- {os: ubuntu-20.04, python-version: '3.6'}
exclude:
- {os: macos-latest, python-version: '3.7'}
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run tests
run: |
python setup.py coverage -q
coverage xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install '.[test]'
- name: Run lint
run: |
flake8