Skip to content

Continuous Integration #315

Continuous Integration

Continuous Integration #315

Workflow file for this run

name: Continuous Integration
on:
# Run every Monday at 00:00 UTC
schedule:
- cron: "00 00 * * 1"
push:
branches:
- main
paths-ignore:
- "**.md"
- "**.rst"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "**.rst"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
needs: []
runs-on: ubuntu-latest
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v3
- name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: "Install Python dependencies"
run: |
pip install --no-cache-dir --upgrade pip setuptools wheel
pip install --no-cache-dir --quiet ".[lint]"
pip list
- name: "Check format"
run: |
make check
test:
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v3
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: "Install Python dependencies"
run: |
pip install --no-cache-dir --upgrade pip setuptools wheel
pip install --no-cache-dir --quiet ".[test]"
pip list
- name: "Test with pytest"
run: |
make test