Skip to content

adding mac

adding mac #1

Workflow file for this run

name: MacM1
on:
push:
paths:
- '**.py'
- '**.yml'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
run-tests:
name: Python ${{ matrix.python-version }}
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
max-parallel: 9
fail-fast: false
matrix:
python-version: [
# "3.10",
"3.11"
]
steps:
# INSTALL BROWSERS
- name: Install browsers on MacOS
if: startsWith(runner.os, 'macOS')
run: |
brew tap domt4/chromium
brew update
brew install --cask mac-chromium
brew upgrade google-chrome
# - name: install chromium
# uses: browser-actions/setup-chrome@v1
# with:
# chrome-version: stable
# - name: install chrome
# uses: browser-actions/setup-chrome@v1
# with:
# chrome-version: stable
- name: install firefox
uses: browser-actions/setup-firefox@v1
with:
firefox-version: latest
################################################################################
# SETUP TEST
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
- name: Configure Poetry
shell: bash
run: poetry config virtualenvs.create false
- name: Install dependencies
shell: bash
run: |
poetry install --with dev
- name: Test with pytest
run: |
pytest -vv