Skip to content

Commit

Permalink
updated GHA and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Ragland committed Oct 30, 2024
1 parent 004c948 commit 0674f35
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 49 deletions.
56 changes: 23 additions & 33 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,26 @@
name: Run Unit Tests
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
name: Check Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Only needed if using setuptools-scm

on:
push:
branches:
- main
pull_request:
branches:
- main
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true

jobs:
test:
runs-on: ubuntu-latest
- name: Install package
run: python -m pip install -e .[test]

strategy:
matrix:
python-version: [3.9, 3.10, 3.11, 3.12] # Modify these versions as needed

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install ooipy
run: |
python -m pip install --upgrade pip
python -m pip install -e .
pip install pytest # Install pytest if not included in requirements
- name: Run tests
run: |
pytest tests/
- name: Test package
run: python -m pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ooi_auth.txt
.eggs
_ooipy_version.py
*.nc
src/ooipy/version.py

# Environments
.env
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ dependencies = [
"aiohttp",
]

[project.optional-dependencies]
test = [
"pytest >= 6.0",
]

[project.urls]
Documentation = "https://ooipy.readthedocs.io"
Issues = "https://github.com/Ocean-Data-Lab/ooipy/issues"
Expand Down
16 changes: 0 additions & 16 deletions src/ooipy/version.py

This file was deleted.

0 comments on commit 0674f35

Please sign in to comment.