Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin requirements for CI testing #173

Merged
merged 10 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,29 @@ jobs:
continue-on-error: true

steps:
- uses: actions/checkout@v3.0.2
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
id: setup-py
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.8.18

- name: Cache test venv
uses: actions/cache@v3
- id: python_cache
uses: actions/cache@v4
with:
path: .pip-cache
key: ${{ runner.os }}-pip-tenv-${{ steps.setup-py.outputs.python-version }}-${{ hashFiles('./pyproject.toml') }}
path: .tenv
key: pip-tenv-${{ steps.setup-py.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
simonhkswan marked this conversation as resolved.
Show resolved Hide resolved
restore-keys: |
${{ runner.os }}-pip-tenv-${{ steps.setup-py.outputs.python-version }}
pip-tenv-${{ steps.setup-py.outputs.python-version }}-
simonhkswan marked this conversation as resolved.
Show resolved Hide resolved

- name: Create test-venv
if: steps.python_cache.outputs.cache-hit != 'true'
shell: bash
run: |
python -m venv .tenv

- name: Create test-venv
run: |
Expand All @@ -42,7 +48,7 @@ jobs:
run: |
source .tenv/bin/activate
python -m build --wheel
pip install $(ls dist/*.whl)[db,test] --cache-dir .pip-cache
pip install $(ls dist/*.whl)[db,test] -c requirements.txt --cache-dir .pip-cache
simonhkswan marked this conversation as resolved.
Show resolved Hide resolved

- name: Run unit tests
run: |
Expand All @@ -55,7 +61,7 @@ jobs:
SYNTHESIZED_KEY: ${{ secrets.SYNTHESIZED_KEY }}

- name: Upload coverage
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage-reports/cobertura.xml
Expand Down
25 changes: 2 additions & 23 deletions requirements.txt
simonhkswan marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
alembic==1.7.6
alembic==1.13.1
cachetools==5.3.1
contourpy==1.1.0
cycler==0.11.0
fonttools==4.42.1
greenlet==2.0.2
importlib-resources==6.0.1
kiwisolver==1.4.5
Mako==1.2.4
MarkupSafe==2.1.3
matplotlib==3.7.3
mypy==1.5.1
mypy-extensions==1.0.0
numpy==1.21.6
packaging==23.1
pandas==1.3.5
Pillow==10.0.0
psycopg2==2.9.2; platform_machine!='arm64' or platform_system!='Darwin'
psycopg2-binary==2.9.9; platform_machine=='arm64' or platform_system=='Darwin'
pyparsing==3.1.1
python-dateutil==2.8.2
pytz==2023.3.post1
scipy==1.10.1
seaborn==0.12.2
six==1.16.0
SQLAlchemy==1.4.40
sqlalchemy2-stubs==0.0.2a35
synthesized-datasets==1.0
tomli==2.0.1
typing_extensions==4.7.1
zipp==3.16.2
SQLAlchemy==2.0.25
Loading