Skip to content

Commit

Permalink
Add conda tests
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jan 4, 2024
1 parent 64fc539 commit fa672f1
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,55 @@ jobs:
run: pip install requests click python-dateutil pandas

- id: download-data
name: Download download
name: Download data
run: python cpi/download.py

- id: tests
name: Run tests
run: python tests.py

- id: update
name: Test update
name: Update data
run: python cpi/download.py

test-conda:
strategy:
matrix:
python: ['3.9', '3.10', '3.11']
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- id: install-python
name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- id: install-python-dependencies
name: Install Python dependencies
run: |
$CONDA/bin/conda create -n base python=${{ matrix.python }}
$CONDA/bin/conda install -n base requests click python-dateutil pandas
- id: download-data
name: Download data
run: $CONDA/bin/conda run -n base python cpi/download.py

- id: tests
name: Run tests
run: $CONDA/bin/conda run -n base python tests.py

- id: update
name: Update data
run: $CONDA/bin/conda run -n base python cpi/download.py

test-build:
name: Build Python package
runs-on: ubuntu-latest
needs: [test-python]
needs: [test-python, test-conda]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit fa672f1

Please sign in to comment.