diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e7f023c..631d8dc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,11 +2,6 @@ name: Tests on: workflow_dispatch: - inputs: - os: - description: 'Operating System (optional)' - required: false - default: '' push: branches: @@ -18,7 +13,7 @@ jobs: fail-fast: false matrix: - os: [ ubuntu-latest, macos-14, windows-latest ] + os: [ ubuntu-latest, macos-14 ] python-version: [ '3.9', '3.10', '3.11' ] exclude: - os: macos-14 @@ -27,7 +22,6 @@ jobs: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories runs-on: ${{ matrix.os }} - if: ${{ (github.event.inputs.os == '' && matrix.os != 'windows-latest') || github.event.inputs.os == matrix.os }} steps: - uses: actions/checkout@v4 @@ -47,7 +41,7 @@ jobs: pip install git+https://github.com/spglib/spglib --config-settings=cmake.define.SPGLIB_SHARED_LIBS=OFF # avoid spglib warnings - name: Install spglib on ubuntu - if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' }} + if: matrix.os == 'ubuntu-latest' run: | conda install -c conda-forge spglib # avoid spglib warnings @@ -62,7 +56,7 @@ jobs: pytest --mpl -m "mpl_image_compare" tests # all plotting tests - name: Generate GH Actions test plots - if: ${{ failure() && steps.plotting_tests.outcome == 'failure' }} # Run only if plotting tests fail + if: failure() && steps.plotting_tests.outcome == 'failure' # Run only if plotting tests fail run: | # Generate the test plots in case there were any failures: pytest --mpl-generate-path=tests/remote_baseline -m "mpl_image_compare" tests