-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff61424
commit 0a0b707
Showing
3 changed files
with
107 additions
and
20 deletions.
There are no files selected for viewing
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
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
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 |
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