Skip to content

Commit

Permalink
Revert "Add Windows option to GH Actions tests workflow dispatch"
Browse files Browse the repository at this point in the history
This reverts commit c9046ad.
  • Loading branch information
kavanase committed Jul 2, 2024
1 parent fa114e5 commit 28c6831
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Tests

on:
workflow_dispatch:
inputs:
os:
description: 'Operating System (optional)'
required: false
default: ''

push:
branches:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 28c6831

Please sign in to comment.