Skip to content

Release of v1.0

Release of v1.0 #51

name: mopper-all-tests
#on: [push]
on:
push:
branches:
- prerelease
- main
pull_request:
branches:
- main
- prerelease
jobs:
build-linux:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
max-parallel: 5
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- name: Set up Python 3.10/3.11
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: testenv
environment-file: conda/testenv.yaml
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Lint with ruff
shell: bash -el {0}
run: |
ruff check --output-format=github .
continue-on-error: true
# making sure we are testing installed package
- name: Install package
shell: bash -el {0}
run: |
conda activate testenv
pip install -e .
- name: Test with pytest
shell: bash -el {0}
run: |
conda run python -m pytest
#conda run coverage run --source src -m py.test
# - name: Upload to codecov
# shell: bash -el {0}
# if: steps.build.outcome == 'success'
# run: |
# curl -Os https://uploader.codecov.io/latest/linux/codecov
# chmod +x codecov
# ./codecov