diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3bd902a..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Python CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-python/ for more details - - -version: 2.1 -# orbs: - # codecov: codecov/codecov@1.0.5 -jobs: - build: - docker: - - image: continuumio/miniconda3:4.12.0 - - working_directory: ~/repo - - steps: - - checkout - - run: - name: install - command: | - conda install -c conda-forge openmc - pip install .[density,tests] - - # run tests! - - run: - name: run tests - command: - pytest tests -v --cov=neutronics_material_maker --cov-report term --cov-report html:htmlcov --cov-report xml --junitxml=test-reports/junit.xml - - store_test_results: - path: test-reports - - - store_artifacts: - path: test-reports - - run: - name: install curl - command: | - apt-get --allow-releaseinfo-change update - apt-get update && apt-get -y install curl - - run: curl -s https://codecov.io/bash | bash diff --git a/.github/workflows/ci_with_install.yml b/.github/workflows/ci_with_install.yml new file mode 100644 index 0000000..eeed405 --- /dev/null +++ b/.github/workflows/ci_with_install.yml @@ -0,0 +1,43 @@ +name: CI testing + +on: + pull_request: + # branches: + # - main + push: + # branches: + # - main + +jobs: + testing: + name: CI (Python=${{ matrix.python-version }}, OS=${{ matrix.os }}) + runs-on: ${{ matrix.os }} + defaults: + run: + shell: bash -el {0} + strategy: + matrix: + os: ["ubuntu-latest"] + python-version: ["3.10"] + + steps: + - name: checkout actions + uses: actions/checkout@v4 + - uses: conda-incubator/setup-miniconda@v3 + with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + channels: conda-forge + + - name: install dependencies + run: conda install -c conda-forge openmc -y + + - name: install package + run: | + python -m pip install --upgrade pip + python -m pip install . + python -c 'import neutronics_material_maker' + python -m pip install .[density,tests] + + - name: run pytest + run: python -m pytest -v tests