Skip to content

Commit

Permalink
Run test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Dec 16, 2024
1 parent 629b7fc commit e3686ab
Showing 1 changed file with 38 additions and 41 deletions.
79 changes: 38 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,44 +114,41 @@ jobs:
name: dist
path: dist
if-no-files-found: error
# run-tests:
# strategy:
# matrix:
# include:
# - name: windows
# image: windows-2022
# - name: linux
# image: ubuntu-22.04
# - name: darwin
# image: macos-13
# runs-on: ${{ matrix.image }}
# needs: [ merge-wheels ]
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: 'true'
# - uses: JesseTG/rm@b0586afffd89db69f7309bd44cc90209173fdbbe
# with:
# path: fmpy
# - uses: actions/download-artifact@v4
# with:
# name: merged
# path: .
# - run: ls
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - if: matrix.name == 'linux' || matrix.name == 'darwin'
# run: |
# for f in FMPy-*.whl; do
# python -m pip install $f[complete]
# done
# - if: matrix.name == 'windows'
# run: |
# $files = Get-ChildItem "FMPy-*.whl"
# foreach ($f in $files) {
# $name = $f.FullName + "[complete]"
# python -m pip install $name
# }
# - run: python -m pip install pytest
# - run: pytest tests
run-tests:
strategy:
matrix:
include:
- name: windows
image: windows-2022
- name: linux
image: ubuntu-22.04
- name: darwin
image: macos-13
runs-on: ${{ matrix.image }}
needs: [ merge-wheels ]
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/download-artifact@v4
with:
name: dist
path: .
- run: ls
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- if: matrix.name == 'linux' || matrix.name == 'darwin'
run: |
for f in FMPy-*.whl; do
python -m pip install $f[complete]
done
- if: matrix.name == 'windows'
run: |
$files = Get-ChildItem "FMPy-*.whl"
foreach ($f in $files) {
$name = $f.FullName + "[complete]"
python -m pip install $name
}
- run: python -m pip install pytest
- run: pytest tests

0 comments on commit e3686ab

Please sign in to comment.