Skip to content

Commit

Permalink
pin requirements for CI testing (#173)
Browse files Browse the repository at this point in the history
* pin requirements for CI testing
  • Loading branch information
simonhkswan authored Feb 7, 2024
1 parent 7f0a489 commit 5f215f8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 32 deletions.
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') }}
restore-keys: |
${{ runner.os }}-pip-tenv-${{ steps.setup-py.outputs.python-version }}
pip-tenv-${{ steps.setup-py.outputs.python-version }}-
- 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
- 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
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

0 comments on commit 5f215f8

Please sign in to comment.