Skip to content

Commit

Permalink
Update python workflow to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timcnicholls committed Sep 29, 2023
1 parent 49f909a commit 883936b
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,31 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, 3.10, 3.11]
defaults:
run:
working-directory: python

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install odin-data
- name: Set up python ${{ matrix.python-version }}
users: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install odin-data python pacakge
run: |
python3 -m venv venv && source venv/bin/activate && pip install --upgrade pip
cd python
python -m pip install --upgrade pip
pip install .
python -c "from odin_data import __version__; print(__version__)"
- name: Run tests
run:
pytest -vs

0 comments on commit 883936b

Please sign in to comment.