-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.27 KB
/
Copy pathtest_env.yml
File metadata and controls
49 lines (47 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Test Conda Env
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- uses: s-weigand/setup-conda@v1
with:
activate-conda: false
- name: Check Python version
run: |
conda --version
which python
python --version
python -c "import sys;print(sys.executable);print(sys.version_info)"
- name: Check env
run: printenv
- name: Install and check pandoc version
run: |
conda install pandoc
pandoc -v
test-integration-default:
name: Default settings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare tests
run: |
python --version
- name: Run setup-conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: true
- name: Create Test env
run: |
conda create -y -n TEST python=3.7 --file environment.txt
source activate TEST
conda info --envs
python -m pip install --upgrade pip
pip install -r requirements.txt
printenv
pytest