Skip to content

Commit

Permalink
attempt at setting some proper dev dependencies in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodlz committed Sep 19, 2024
1 parent 84ce5b0 commit 0f5671e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/continous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,21 @@ jobs:
cache: 'pip'
cache-dependency-path: setup.py

- uses: actions/cache@v4
with:
path: |
~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
python -m pip install --upgrade pip
pip install pytest pytest-runner pytest-rerunfailures coveralls freezegun
pip install -e .
pip install -e ".[dev]"
- name: Run tests
run: coverage run -m pytest -v -s
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,18 @@ dependencies = [
'tables',
'regions'
]

dynamic = ["version"]

[project.optional-dependencies]
test = [
'pytest',
'pytest-runner',
'pytest-rerunfailures',
'coveralls',
'freezegun',
]

[project.scripts]
gwemopt-run = "gwemopt.run:run"

Expand Down

0 comments on commit 0f5671e

Please sign in to comment.