Skip to content

Commit

Permalink
Update environment and change to Python 3.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
buddejul committed Sep 3, 2024
1 parent d408f71 commit 4bb85cb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 18 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.11']
# Currently only developing on windows.
os: [windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.12']
steps:
- uses: actions/checkout@v3
- name: create build environment
Expand All @@ -35,7 +37,7 @@ jobs:
micromamba activate gha-testing
pytest --cov-report=xml --cov=./
- name: Upload coverage report.
if: runner.os == 'Linux' && matrix.python-version == '3.11'
if: runner.os == 'Linux' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ repos:
rev: 23.9.1
hooks:
- id: black
language_version: python3.11
language_version: python3.12
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand Down
40 changes: 27 additions & 13 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
---
name: thesis
channels: [conda-forge, nodefaults]
channels: [conda-forge, r, nodefaults]
dependencies:
- python ==3.12
- pip >=21.1

# Development dependencies
- conda-lock
- ipykernel
- jupyterlab
- pandas
- pip >=21.1
- plotly>=5.13.0
- pre-commit
- pytask-latex>=0.4.0
- pytask-parallel>=0.4.0
- pytask>=0.4.0

# Language agnostic template project dependencies
- pytask >=0.5.0
- pytask-latex >=0.4.2
- pytask-parallel >=0.5.0
- pytest
- pytest-cov
- pytest-xdist
- python-graphviz
- python=3.11
- pyyaml
- setuptools_scm

# Python template project dependencies
- statsmodels
- toml
- pip: [-e ., kaleido==0.1.0.post1, pdbp, joblib]
- numpy
- pandas >=2.2
- plotly >=5.2.0,<6

# R template project dependencies
# Currently we are not using R hence we do not need to install these dependencies.
# - pytask-r >=0.4.1
# - pyreadr
# - r-plyr
# - r-precommit
# - r-yaml
# - r-forcats

# Install project
- pip: [-e ., pdbp, kaleido==0.1.0.post1, joblib]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ project_urls =
packages = find:
install_requires =
pytask
python_requires = >=3.11
python_requires = >=3.12
include_package_data = True
package_dir =
=src
Expand Down

0 comments on commit 4bb85cb

Please sign in to comment.