Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
1836df1
add separate testing workflow for PRs
andrewelamb Aug 22, 2025
3947411
update upload/artifact version
andrewelamb Aug 22, 2025
968b7e0
Potential fix for code scanning alert no. 5: Workflow does not contai…
andrewelamb Aug 22, 2025
3786930
removed some of prepare workflow
andrewelamb Aug 22, 2025
9af935f
ran pre commit
andrewelamb Aug 22, 2025
cc3a945
updated interogate to v1.7
andrewelamb Aug 22, 2025
63e5777
updated flake8 to v7.3
andrewelamb Aug 22, 2025
6289fff
update deprecated github action
andrewelamb Aug 22, 2025
0cba3f7
rremove download of files
andrewelamb Aug 22, 2025
a84e1c0
chnage to use pytest
andrewelamb Aug 22, 2025
2104bcd
comment out section that modifies pytest behavior
andrewelamb Aug 22, 2025
ca78a0f
add pipenv to create environment for pytest
andrewelamb Aug 22, 2025
6350629
fix pipenv testting
andrewelamb Aug 22, 2025
3cf3dbb
remove macos testing
andrewelamb Aug 22, 2025
f32637b
add step to install pyenv
andrewelamb Aug 22, 2025
6f582bf
remove py3.11
andrewelamb Aug 22, 2025
49b9d76
update python verison in setup file
andrewelamb Aug 22, 2025
ccce060
update python verison in setup file
andrewelamb Aug 22, 2025
889cafb
redo testing workflow
andrewelamb Aug 22, 2025
fa427d3
redo testing workflow
andrewelamb Aug 22, 2025
48c0470
redo testing workflow
andrewelamb Aug 22, 2025
3513b23
fix python version
andrewelamb Aug 22, 2025
ddfdd79
fix python version
andrewelamb Aug 22, 2025
0f50c23
remove python 3.12, 3.13 as possible versions
andrewelamb Aug 22, 2025
ba8fecf
redo testing workflow
andrewelamb Aug 22, 2025
b8bee54
using pipenv
andrewelamb Aug 22, 2025
ffdc52c
remove python req form pipfile
andrewelamb Aug 22, 2025
76ac35c
fix pipenv workflow
andrewelamb Aug 22, 2025
563fade
fix pipenv workflow
andrewelamb Aug 22, 2025
df7522a
change version of fs-synapse in cfg
andrewelamb Aug 22, 2025
c6c2618
change version of fs-synapse in cfg
andrewelamb Aug 22, 2025
3094cc0
updated piplock file
andrewelamb Aug 22, 2025
fb85cf5
set python verison in pipenv command
andrewelamb Aug 22, 2025
c09bc42
restrict python to 3.11
andrewelamb Aug 22, 2025
e6a1af8
add synapse toekn as env var
andrewelamb Aug 26, 2025
39e4795
add checks for auth token
andrewelamb Aug 26, 2025
eb67219
remove auth token checks
andrewelamb Aug 26, 2025
7c6fa07
change auth token secret
andrewelamb Aug 26, 2025
1cd983a
revert secret back to original name
andrewelamb Aug 26, 2025
a653730
change python command to python3
andrewelamb Aug 26, 2025
568ea7d
change python3 command to python
andrewelamb Aug 26, 2025
0085401
add not slow to tests
andrewelamb Aug 26, 2025
3ee9637
add python 3.10
andrewelamb Aug 26, 2025
1de84c5
add exceptiongroup to dev dependencies
andrewelamb Aug 26, 2025
7e4cbb9
add exceptiongroup to dependencies
andrewelamb Aug 26, 2025
1608b5f
move exceptiongroup to workflow
andrewelamb Aug 26, 2025
f4cc4af
bumpy pypi to 8.0
andrewelamb Aug 26, 2025
f17fa8b
lock pytest to 7.0
andrewelamb Aug 26, 2025
a41c69a
added exceptiongroup
andrewelamb Aug 26, 2025
b55ac52
added exceptiongroup
andrewelamb Aug 26, 2025
70ba14d
added tomli
andrewelamb Aug 26, 2025
7f0dc8a
upgraded to black 25.1.0
andrewelamb Aug 26, 2025
5aac78a
upgraded to black 25.1.0
andrewelamb Aug 26, 2025
102e9a9
added tomli to dev packages
andrewelamb Aug 26, 2025
98eccd2
add python3.12
andrewelamb Aug 26, 2025
8f2b4f6
add py 3.13
andrewelamb Aug 26, 2025
490193a
-m remove py 3.12, 3.13
andrewelamb Aug 26, 2025
d0ef7a0
add mac-os
andrewelamb Aug 26, 2025
a41d959
uncomment pytest section
andrewelamb Aug 26, 2025
cf2962b
cleanup check step
andrewelamb Aug 26, 2025
dc23305
add prepare job
andrewelamb Aug 26, 2025
e5ef94b
add prepare job
andrewelamb Aug 26, 2025
1ce19e4
update action version
andrewelamb Aug 26, 2025
37397a5
truncate prepare job
andrewelamb Aug 26, 2025
070d0d6
add to prepare job
andrewelamb Aug 26, 2025
16e28e4
add to prepare job
andrewelamb Aug 26, 2025
3501747
rmeove github token from keepalive step
andrewelamb Aug 26, 2025
ef30be0
add test2 workflow
andrewelamb Aug 26, 2025
46269f9
move workflow
andrewelamb Aug 26, 2025
f9e224b
ran pre-commit
andrewelamb Aug 26, 2025
6a143a6
update action version
andrewelamb Aug 26, 2025
dcee4fb
comment out failing test
andrewelamb Aug 26, 2025
0014925
run pre-commit
andrewelamb Aug 26, 2025
a5e72c1
add pypi job
andrewelamb Aug 26, 2025
609fe68
add verison to setup file
andrewelamb Aug 26, 2025
3b0098b
add docker publish workflow
andrewelamb Aug 27, 2025
5abd212
update github aciton versions
andrewelamb Aug 27, 2025
321ec96
add permissiosn to publish job
andrewelamb Aug 27, 2025
8129ca5
updated original workflow file
andrewelamb Aug 27, 2025
927c313
moved test file
andrewelamb Aug 27, 2025
f6a131f
redo top of workflow
andrewelamb Aug 27, 2025
3eddefb
chnage to trigger workflow
andrewelamb Aug 27, 2025
d12683c
chnage to trigger workflow
andrewelamb Aug 27, 2025
d610d6b
chnage to trigger workflow
andrewelamb Aug 27, 2025
4822f51
rename workflow
andrewelamb Aug 27, 2025
230a824
add back in all triggers
andrewelamb Aug 27, 2025
5b887d2
add back in commented/removed parts
andrewelamb Aug 27, 2025
8c1a074
uncomment windows as OS
andrewelamb Aug 27, 2025
9731b3b
recomment windows testing
andrewelamb Aug 27, 2025
4478e9f
update dev package versions
andrewelamb Aug 27, 2025
e7d6242
remove test ci files
andrewelamb Aug 27, 2025
8beb029
add todo items
andrewelamb Aug 27, 2025
1bbfea8
rename workflow file
andrewelamb Aug 27, 2025
f38d22d
rename workflow
andrewelamb Aug 27, 2025
8c90d2f
add todos
andrewelamb Aug 27, 2025
1dd0d1d
change version to 1.7.2.dev0
andrewelamb Aug 27, 2025
510661b
update version to 1.7.3
andrewelamb Aug 27, 2025
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
45 changes: 26 additions & 19 deletions .github/workflows/ci.yml → .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# MODIFY IT ACCORDING TO YOUR NEEDS!
# Reference: https://docs.github.com/en/actions

name: test
name: CI

on:
push:
Expand Down Expand Up @@ -30,9 +30,9 @@ jobs:
wheel-path: ${{ steps.distribution-paths.outputs.wheel }}
tarball-path: ${{ steps.distribution-paths.outputs.tarball }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with: { fetch-depth: 0 } # deep clone for setuptools-scm
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with: { python-version: "3.11" }
- name: Run static analysis and format checkers
run: pipx run pre-commit run --all-files --show-diff-on-failure
Expand All @@ -49,39 +49,45 @@ jobs:
# `tests`, `pypi-publish`, and `docker-publish` will use the same
# pre-built distributions, so we make sure to release the exact
# same package that was tested
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: python-distribution-files
path: dist/
retention-days: 1
- name: Keepalive Workflow
uses: gautamkrishnar/keepalive-workflow@1.1.0
with:
time_elapsed: 44
gh_token: ${{ secrets.GITHUB_TOKEN }}
# TODO: Fix or remove: https://sagebionetworks.jira.com/browse/ORCA-347
#- name: Keepalive Workflow
# uses: gautamkrishnar/keepalive-workflow@1.1.0
# with:
# time_elapsed: 44
# gh_token: ${{ secrets.GITHUB_TOKEN }}

test:
needs: prepare
strategy:
matrix:
python:
- "3.9" # oldest Python that is supported
- "3.11" # newest Python that is stable
# TODO: Sunset 3.10: https://sagebionetworks.jira.com/browse/ORCA-352
# TODO: Allow more recent Python versions: https://sagebionetworks.jira.com/browse/ORCA-346
- "3.10"
- "3.11"
#- "3.12"
#- "3.13"
#- "3.14"
platform:
- ubuntu-latest
- macos-latest
# TODO: Debug the Windows issues
# - windows-latest
# TODO: Fix or remove Windows testing: https://sagebionetworks.jira.com/browse/ORCA-348
#- windows-latest
env:
OS: ${{ matrix.platform }}
PYTHON: ${{ matrix.python }}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with: { name: python-distribution-files, path: dist/ }
- name: Install tox-gh plugin
run: python -m pip install tox-gh>=1.2
Expand Down Expand Up @@ -109,10 +115,10 @@ jobs:
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with: { python-version: "3.11" }
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with: { name: python-distribution-files, path: dist/ }
- name: Publish Python Package to PyPI
env:
Expand All @@ -122,12 +128,13 @@ jobs:
run: pipx run --spec 'tox!=3.0' tox -e publish

docker-publish:
permissions: write-all
needs: [prepare, test]
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with: { name: python-distribution-files, path: dist/ }
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
Expand Down
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ repos:
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows

- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
rev: v2.3.1
hooks:
- id: autoflake

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 6.0.1
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 25.1.0
hooks:
- id: black
language_version: python3
Expand All @@ -40,23 +40,24 @@ repos:
# additional_dependencies: [black]

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.3.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear, flake8-pyproject]

- repo: https://github.com/pre-commit/mirrors-mypy
# TODO: update mypy: https://sagebionetworks.jira.com/browse/ORCA-350
rev: 'v0.991'
hooks:
- id: mypy

- repo: https://github.com/kynan/nbstripout
rev: '0.6.1'
rev: 0.8.1
hooks:
- id: nbstripout

- repo: https://github.com/econchick/interrogate
rev: 1.5.0
rev: 1.7.0
hooks:
- id: interrogate
args: [--verbose, --fail-under=0]
3 changes: 0 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ dcqc = {editable = true, path = ".", extras = ["all"]}

[dev-packages]
dcqc = {editable = true, path = ".", extras = ["testing", "dev"]}

[requires]
python_version = "3.11"
Loading
Loading