diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 77294f80..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: test - -on: [push, pull_request] - -# cancels prior builds for this workflow when new commit is pushed -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build: - name: Build and run tests - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: ['3.11'] - ipopt-version: ['3.14'] - defaults: - run: - shell: bash -l {0} - steps: - - name: Checkout CyIpopt - uses: actions/checkout@v3 - - uses: conda-incubator/setup-miniconda@v2 - with: - auto-update-conda: true - activate-environment: test-environment - python-version: ${{ matrix.python-version }} - channels: conda-forge - miniforge-variant: Mambaforge - - name: Install basic dependencies - run: mamba install -y -v lapack "libblas=*=*netlib" cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 - - name: Install CyIpopt - run: | - rm pyproject.toml - python -m pip install . - mamba list - - name: Test with pytest - run: | - python -c "import cyipopt" - mamba install -y -v cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 - pytest - mamba install -y -v cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 pytest>=3.3.2 scipy>=0.19.1 - pytest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 381cd1a2..b0b9bf58 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,6 @@ name: tests -on: - push: - branches: master - pull_request: - branches: master +on: [push, pull_request] # cancels prior builds for this workflow when new commit is pushed concurrency: