summaryrefslogtreecommitdiffstats
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2022-06-19 07:06:18 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2022-06-19 07:06:18 +0000
commitd1a4b99d1127b881225cfb38f943493de1a042e3 (patch)
treee937c9ee98cc103a730cd74fc6566a7d904e02c4 /.github/workflows/tests.yml
parentAdding upstream version 0.1.2. (diff)
downloadpydyf-d1a4b99d1127b881225cfb38f943493de1a042e3.tar.xz
pydyf-d1a4b99d1127b881225cfb38f943493de1a042e3.zip
Adding upstream version 0.2.0.upstream/0.2.0
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..b69256e
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,35 @@
+name: pydyf's tests
+on: [push, pull_request]
+
+jobs:
+ tests:
+ name: ${{ matrix.os }} - ${{ matrix.python-version }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install Ghostscript (Ubuntu)
+ if: matrix.os == 'ubuntu-latest'
+ run: sudo apt-get update -y && sudo apt-get install ghostscript -y
+ - name: Install Ghostscript (macOS)
+ if: matrix.os == 'macos-latest'
+ run: brew install ghostscript
+ - name: Install Ghostscript (Windows)
+ if: matrix.os == 'windows-latest'
+ run: |
+ C:\msys64\usr\bin\bash -lc 'pacman -S mingw-w64-x86_64-ghostscript --noconfirm'
+ echo "C:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH
+ rm C:\msys64\mingw64\bin\python.exe
+ - name: Upgrade pip and setuptools
+ run: python -m pip install --upgrade pip setuptools
+ - name: Install tests’ requirements
+ run: python -m pip install .[test]
+ - name: Launch tests
+ run: python -m pytest