Skip to content

Commit 24a73d3

Browse files
committed
Updated config files and added conda GitHub Actions job.
1 parent 6d61f41 commit 24a73d3

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/conda_ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Conda Tests
4+
5+
on:
6+
push:
7+
pull_request:
8+
branches: ["master"]
9+
10+
jobs:
11+
tests:
12+
name: "Python ${{ matrix.python-version }}"
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: False
17+
matrix:
18+
python-version: ["3.6","3.7","3.8","3.9"]
19+
20+
steps:
21+
- name: Checkout 🛎️
22+
uses: "actions/checkout@v2"
23+
- name: Setup Python 🐍
24+
uses: "actions/setup-python@v2"
25+
with:
26+
python-version: "${{ matrix.python-version }}"
27+
- name: Install dependencies 🔧
28+
run: |
29+
python -VV
30+
python -m site
31+
python -m pip install --upgrade pip setuptools wheel
32+
python -m pip install --upgrade repo_helper
33+
# $CONDA is an environment variable pointing to the root of the miniconda directory
34+
$CONDA/bin/conda update -q conda
35+
36+
$CONDA/bin/conda config --add channels domdfcoding
37+
38+
$CONDA/bin/conda config --add channels conda-forge
39+
40+
41+
- name: "Build and install package"
42+
run: |
43+
# This mess is only necessary because conda won't fix it themselves
44+
# https://github.com/conda/conda/issues/1884
45+
python -m repo_helper build --conda --out-dir conda-bld/noarch
46+
$CONDA/bin/conda install domdf_python_tools -c local -y || exit 1

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ jobs:
7272
apt:
7373
update: true
7474
install:
75-
- pip install rst2txt yolk3k
7675
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
7776
- bash miniconda.sh -b -p $HOME/miniconda
7877
- chmod +x .ci/travis_deploy_conda.sh

0 commit comments

Comments
 (0)