playing with matrix again ## #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS Tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
do-the-job: | |
name: Do the job on the cpu | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- {os: macos-latest, architecture: arm64, python-version: '3.10'} | |
- {os: macos-latest, architecture: arm64, python-version: '3.11'} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install dependencies with Poetry | |
run: | | |
poetry install --no-interaction --no-root | |
shell: bash | |
- name: Run unit tests | |
run: poetry run pytest |