Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmasdeu authored Jan 31, 2024
1 parent ea79d66 commit c9fef25
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }

concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest", "macos-latest"]
steps:
- name: checkout
uses: actions/checkout@v3
with: { submodules: recursive }
- name: setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "${{ matrix.python }}"
miniforge-variant: Mambaforge
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: install package
shell: bash -l {0}
run: |
pip install --no-dependencies .
- name: doctest
shell: bash -l {0}
run: |
sage -t darmonpoints

0 comments on commit c9fef25

Please sign in to comment.