Skip to content

Commit

Permalink
adding mac
Browse files Browse the repository at this point in the history
  • Loading branch information
bandophahita committed Oct 13, 2023
1 parent ff61424 commit 0a0b707
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 20 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ jobs:
]

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'



# INSTALL BROWSERS
- name: Install browsers on Linux
if: runner.os == 'Linux'
Expand Down Expand Up @@ -80,6 +70,12 @@ jobs:

################################################################################
# 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:
Expand Down
95 changes: 95 additions & 0 deletions .github/workflows/test-mac-m1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
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
16 changes: 6 additions & 10 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ jobs:
]

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'


# INSTALL BROWSERS
- name: Install chromium
if: runner.os == 'Windows'
Expand Down Expand Up @@ -76,10 +67,15 @@ jobs:





################################################################################
# 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:
Expand Down

0 comments on commit 0a0b707

Please sign in to comment.