Modernize package structure #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: gglasso_env | |
environment-file: environment.yml | |
python-version: 3.9 | |
# Install package and run tests | |
- name: run tests | |
# This one is very important so we can reuse conda env from last step | |
shell: bash -l {0} | |
run: | | |
python -m pip install --editable . | |
pytest tests/ -v |