generated from ImperialCollegeLondon/poetry_template_2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
180 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Tests (pip-tools) | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install cookiecutter | ||
run: pip install cookiecutter | ||
|
||
- name: Create project from template | ||
# Choose default options | ||
run: cookiecutter . --no-input packaging=pip-tools | ||
|
||
- name: Install project dependencies | ||
working-directory: my_project | ||
run: pip install -r dev-requirements.txt | ||
|
||
- name: Run tests | ||
working-directory: my_project | ||
run: pytest | ||
|
||
- name: Run pre-commit hooks for project | ||
working-directory: my_project | ||
run: | | ||
git init | ||
git add . | ||
pre-commit run -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml | ||
# | ||
attrs==23.2.0 | ||
# via pytest-mypy | ||
build==1.2.1 | ||
# via pip-tools | ||
cfgv==3.4.0 | ||
# via pre-commit | ||
click==8.1.7 | ||
# via pip-tools | ||
coverage[toml]==7.5.0 | ||
# via pytest-cov | ||
distlib==0.3.8 | ||
# via virtualenv | ||
filelock==3.13.1 | ||
# via | ||
# pytest-mypy | ||
# virtualenv | ||
identify==2.5.33 | ||
# via pre-commit | ||
iniconfig==2.0.0 | ||
# via pytest | ||
mypy==1.9.0 | ||
# via | ||
# datahub (pyproject.toml) | ||
# pytest-mypy | ||
mypy-extensions==1.0.0 | ||
# via mypy | ||
nodeenv==1.8.0 | ||
# via pre-commit | ||
packaging==24.0 | ||
# via | ||
# build | ||
# pytest | ||
pip-tools==7.4.0 | ||
# via datahub (pyproject.toml) | ||
platformdirs==4.2.1 | ||
# via virtualenv | ||
pluggy==1.5.0 | ||
# via pytest | ||
pre-commit==3.7.0 | ||
# via datahub (pyproject.toml) | ||
pyproject-hooks==1.0.0 | ||
# via | ||
# build | ||
# pip-tools | ||
pytest==8.1.1 | ||
# via | ||
# datahub (pyproject.toml) | ||
# pytest-cov | ||
# pytest-mock | ||
# pytest-mypy | ||
pytest-cov==4.1.0 | ||
# via datahub (pyproject.toml) | ||
pytest-mock==3.12.0 | ||
# via datahub (pyproject.toml) | ||
pytest-mypy==0.10.3 | ||
# via datahub (pyproject.toml) | ||
pyyaml==6.0.1 | ||
# via pre-commit | ||
ruff==0.3.0 | ||
# via datahub (pyproject.toml) | ||
typing-extensions==4.9.0 | ||
# via mypy | ||
virtualenv==20.26.1 | ||
# via pre-commit | ||
wheel==0.43.0 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# pip | ||
# setuptools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile | ||
# |