Skip to content

Commit

Permalink
Separate out CI and dev dependencies for smaller builds. (#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartfeenstra committed Jan 8, 2024
1 parent ac28723 commit a8f2efe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
sudo apt-get install "${apt_packages[@]}"
- name: Build the development environment
run: ./bin/build-dev
run: ./bin/build-ci
shell: bash

- name: Get the Cypress cache directory
Expand Down
11 changes: 11 additions & 0 deletions bin/build-ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -Eeuo pipefail

cd "$(dirname "$0")/.."

# Install Python dependencies.
pip install '.[ci]'

# Install JavaScript dependencies.
npm install
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ setuptools = [
'twine ~= 4.0, >= 4.0.0',
'wheel ~= 0.40, >= 0.40.0',
]
development = [
test = [
'aioresponses ~= 0.7, >= 0.7.6',
'autopep8 ~= 2.0, >= 2.0.2',
'basedmypy ~= 2.0, >= 2.2.1',
'codecov ~= 2.1, >= 2.1.12',
'coverage ~= 7.2, >= 7.2.4',
'flake8 ~= 7.0',
'html5lib ~= 1.1',
Expand All @@ -101,7 +100,6 @@ development = [
'pytest-cov ~= 4.0, >= 4.0.0',
'pytest-mock ~= 3.10, >= 3.10.0',
'pytest-qt ~= 4.2, >= 4.2.0',
'pytest-repeat ~= 0.9, >= 0.9.1',
'pytest-xvfb ~= 3.0, >= 3.0.0',
'types-aiofiles ~= 23.2, >= 23.2.0.0',
'types-click ~= 7.1, >= 7.1.8',
Expand All @@ -113,6 +111,14 @@ development = [
'betty[pyinstaller]',
'betty[setuptools]',
]
development = [
'pytest-repeat ~= 0.9, >= 0.9.1',
'betty[test]',
]
ci = [
'codecov ~= 2.1, >= 2.1.12',
'betty[test]',
]

[tool.setuptools.dynamic]
version = {file = ['betty/assets/VERSION']}
Expand Down

0 comments on commit a8f2efe

Please sign in to comment.