Some checks failed
Build / Test on ubuntu-latest (push) Successful in 2m4s
Examples / Test examples (ubuntu-latest, 3.10) (push) Successful in 2m16s
Lint / lint (push) Successful in 1m25s
Build / Test on macOS-latest (push) Has been cancelled
Build / Test on windows-latest (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Test on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
python_version: [3.9]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'recursive'
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python_version }}
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: |
|
|
pip install poetry==1.3.2
|
|
python -m venv venv
|
|
source venv/bin/activate || source venv/Scripts/activate
|
|
make build
|
|
|
|
- name: Run tests
|
|
shell: bash
|
|
run: |
|
|
source venv/bin/activate || source venv/Scripts/activate
|
|
make test
|
|
make typecheck
|
|
|
|
- name: Report coverage
|
|
shell: bash
|
|
run: |
|
|
# Allow to fail, since sometimes codecov servers are grumpy
|
|
bash <(curl -s https://codecov.io/bash) || true
|