Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/test_push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

name: test-bench

on: push

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install conda
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
python -m ensurepip
$CONDA/bin/conda env create -f conda-env.yml

- name: Activate
run: $CONDA/bin/conda activate deepskies-simcmb

- name: Install package
run: python3 -m pip install .

- name: Test with pytest
run: |
python3 -m pytest