Skip to content

Commit

Permalink
Fix CI #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Dec 14, 2021
1 parent e266faa commit 3484fad
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,56 @@ name: Run tox tests

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
pytest:

runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [[3,8]]
python-version: [[3, 8]]
# python-version: [[3,6], [3,7], [3,8], [3,9]]
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v2
with:
python-version: ${{ join(matrix.python-version, '.') }}

- name: Run shell command
run: |
echo %PATH%
set
git
# - name: Copy policy file for ubuntu-latest (needed to use ImageMagic in visual debugging tox tests)
# run: |
# sudo cp .github/workflows/policy.xml /etc/ImageMagick-6/policy.xml
# if: matrix.os == 'ubuntu-latest'

# - name: Install ghostscript
# run: |
# sudo apt install ghostscript
# if: matrix.os == 'ubuntu-latest'

# - name: Install ImageMagick on macos-latest
# run: |
# brew install freetype imagemagick
# if: matrix.os == 'macos-latest'

- name: Install poetry and tox
run: |
python -m pip install poetry tox
- name: Run tox env pytest
run: |
tox -e py${{ join(matrix.python-version, '') }}
- uses: actions/checkout@v2

- name: Set up Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v2
with:
python-version: ${{ join(matrix.python-version, '.') }}

- name: Run shell command
run: |
echo %PATH%
set
git help
if: runner.os == 'Windows'

# - name: Copy policy file for ubuntu-latest (needed to use ImageMagic in visual debugging tox tests)
# run: |
# sudo cp .github/workflows/policy.xml /etc/ImageMagick-6/policy.xml
# if: matrix.os == 'ubuntu-latest'

# - name: Install ghostscript
# run: |
# sudo apt install ghostscript
# if: matrix.os == 'ubuntu-latest'

# - name: Install ImageMagick on macos-latest
# run: |
# brew install freetype imagemagick
# if: matrix.os == 'macos-latest'

- name: Install poetry and tox
run: |
python -m pip install poetry tox
- name: Run tox env pytest
run: |
tox -e py${{ join(matrix.python-version, '') }}
# flake8_pylint_docs_black:

Expand Down

0 comments on commit 3484fad

Please sign in to comment.