Skip to content

ci: change build command & setup config #129

ci: change build command & setup config

ci: change build command & setup config #129

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yaml
activate-environment: build
- name: Build
run: |
python -m pip install --upgrade setuptools
python -m pip install --upgrade wheel
python -m pip install --upgrade numpy>=2.0
python setup.py bdist_wheel
- name: Upload artifact
uses: actions/upload-artifact@v2
if: ${{ !github.head_ref }}
with:
name: ${{ matrix.os }}_${{ matrix.python-version }}
path: dist/