Skip to content

ci: build for macos and linux #14

ci: build for macos and linux

ci: build for macos and linux #14

Workflow file for this run

---
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
## Concurrency only allowed in the main branch.
## So old builds running for old commits within the same Pull Request are cancelled
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install --no-interaction
- name: Lint
run: poetry run poe lint
build:
strategy:
matrix:
os:
- macos-14
- macos-13
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
- name: Install poetry and dependencies
run: |
pip3 install --no-cache-dir --upgrade pip poetry
poetry install
- name: Build
run: poetry run poe build