MilesCranmer commited on
Commit
1b8ec96
1 Parent(s): ec7b478

Add pysr-forge test

Browse files
.github/workflows/CI_conda_forge.yml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: conda-forge
2
+
3
+ # This CI tries the conda-forge version of PYSR
4
+
5
+ on:
6
+ schedule:
7
+ # Run at the 0th minute of the 10th hour (UTC).
8
+ # This means the job will run at 5am EST.
9
+ - cron: "0 10 * * *"
10
+ # This will automatically run on master branch only.
11
+ workflow_dispatch:
12
+
13
+ jobs:
14
+ conda_test:
15
+ runs-on: ${{ matrix.os }}
16
+ defaults:
17
+ run:
18
+ shell: bash -l {0}
19
+ strategy:
20
+ matrix:
21
+ julia-version: ['1.7.1']
22
+ python-version: ['3.9']
23
+ os: ['ubuntu-latest']
24
+
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - name: "Set up Conda"
28
+ uses: conda-incubator/setup-miniconda@v2
29
+ with:
30
+ miniforge-variant: Mambaforge
31
+ miniforge-version: latest
32
+ auto-activate-base: true
33
+ python-version: ${{ matrix.python-version }}
34
+ activate-environment: test
35
+ - name: "Install pysr-forge"
36
+ run: conda activate test && mamba install pysr
37
+ - name: "Ensure that static libpython warning appears"
38
+ run: conda activate test && python3 -m unittest test.test_static_libpython_warning
39
+ - name: "Run tests"
40
+ run: conda activate test && python3 -m unittest test.test