-
Notifications
You must be signed in to change notification settings - Fork 3
Fix broken CI workflow. #63
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
97 commits
Select commit
Hold shift + click to select a range
1836df1
add separate testing workflow for PRs
andrewelamb 3947411
update upload/artifact version
andrewelamb 968b7e0
Potential fix for code scanning alert no. 5: Workflow does not contai…
andrewelamb 3786930
removed some of prepare workflow
andrewelamb 9af935f
ran pre commit
andrewelamb cc3a945
updated interogate to v1.7
andrewelamb 63e5777
updated flake8 to v7.3
andrewelamb 6289fff
update deprecated github action
andrewelamb 0cba3f7
rremove download of files
andrewelamb a84e1c0
chnage to use pytest
andrewelamb 2104bcd
comment out section that modifies pytest behavior
andrewelamb ca78a0f
add pipenv to create environment for pytest
andrewelamb 6350629
fix pipenv testting
andrewelamb 3cf3dbb
remove macos testing
andrewelamb f32637b
add step to install pyenv
andrewelamb 6f582bf
remove py3.11
andrewelamb 49b9d76
update python verison in setup file
andrewelamb ccce060
update python verison in setup file
andrewelamb 889cafb
redo testing workflow
andrewelamb fa427d3
redo testing workflow
andrewelamb 48c0470
redo testing workflow
andrewelamb 3513b23
fix python version
andrewelamb ddfdd79
fix python version
andrewelamb 0f50c23
remove python 3.12, 3.13 as possible versions
andrewelamb ba8fecf
redo testing workflow
andrewelamb b8bee54
using pipenv
andrewelamb ffdc52c
remove python req form pipfile
andrewelamb 76ac35c
fix pipenv workflow
andrewelamb 563fade
fix pipenv workflow
andrewelamb df7522a
change version of fs-synapse in cfg
andrewelamb c6c2618
change version of fs-synapse in cfg
andrewelamb 3094cc0
updated piplock file
andrewelamb fb85cf5
set python verison in pipenv command
andrewelamb c09bc42
restrict python to 3.11
andrewelamb e6a1af8
add synapse toekn as env var
andrewelamb 39e4795
add checks for auth token
andrewelamb eb67219
remove auth token checks
andrewelamb 7c6fa07
change auth token secret
andrewelamb 1cd983a
revert secret back to original name
andrewelamb a653730
change python command to python3
andrewelamb 568ea7d
change python3 command to python
andrewelamb 0085401
add not slow to tests
andrewelamb 3ee9637
add python 3.10
andrewelamb 1de84c5
add exceptiongroup to dev dependencies
andrewelamb 7e4cbb9
add exceptiongroup to dependencies
andrewelamb 1608b5f
move exceptiongroup to workflow
andrewelamb f4cc4af
bumpy pypi to 8.0
andrewelamb f17fa8b
lock pytest to 7.0
andrewelamb a41c69a
added exceptiongroup
andrewelamb b55ac52
added exceptiongroup
andrewelamb 70ba14d
added tomli
andrewelamb 7f0dc8a
upgraded to black 25.1.0
andrewelamb 5aac78a
upgraded to black 25.1.0
andrewelamb 102e9a9
added tomli to dev packages
andrewelamb 98eccd2
add python3.12
andrewelamb 8f2b4f6
add py 3.13
andrewelamb 490193a
-m remove py 3.12, 3.13
andrewelamb d0ef7a0
add mac-os
andrewelamb a41d959
uncomment pytest section
andrewelamb cf2962b
cleanup check step
andrewelamb dc23305
add prepare job
andrewelamb e5ef94b
add prepare job
andrewelamb 1ce19e4
update action version
andrewelamb 37397a5
truncate prepare job
andrewelamb 070d0d6
add to prepare job
andrewelamb 16e28e4
add to prepare job
andrewelamb 3501747
rmeove github token from keepalive step
andrewelamb ef30be0
add test2 workflow
andrewelamb 46269f9
move workflow
andrewelamb f9e224b
ran pre-commit
andrewelamb 6a143a6
update action version
andrewelamb dcee4fb
comment out failing test
andrewelamb 0014925
run pre-commit
andrewelamb a5e72c1
add pypi job
andrewelamb 609fe68
add verison to setup file
andrewelamb 3b0098b
add docker publish workflow
andrewelamb 5abd212
update github aciton versions
andrewelamb 321ec96
add permissiosn to publish job
andrewelamb 8129ca5
updated original workflow file
andrewelamb 927c313
moved test file
andrewelamb f6a131f
redo top of workflow
andrewelamb 3eddefb
chnage to trigger workflow
andrewelamb d12683c
chnage to trigger workflow
andrewelamb d610d6b
chnage to trigger workflow
andrewelamb 4822f51
rename workflow
andrewelamb 230a824
add back in all triggers
andrewelamb 5b887d2
add back in commented/removed parts
andrewelamb 8c1a074
uncomment windows as OS
andrewelamb 9731b3b
recomment windows testing
andrewelamb 4478e9f
update dev package versions
andrewelamb e7d6242
remove test ci files
andrewelamb 8beb029
add todo items
andrewelamb 1bbfea8
rename workflow file
andrewelamb f38d22d
rename workflow
andrewelamb 8c90d2f
add todos
andrewelamb 1dd0d1d
change version to 1.7.2.dev0
andrewelamb 510661b
update version to 1.7.3
andrewelamb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,82 @@ | ||
| name: Testing | ||
| on: [pull_request] | ||
|
|
||
| jobs: | ||
|
|
||
| prepare: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| wheel-path: ${{ steps.distribution-paths.outputs.wheel }} | ||
| tarball-path: ${{ steps.distribution-paths.outputs.tarball }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: { fetch-depth: 0 } # deep clone for setuptools-scm | ||
| - uses: actions/setup-python@v4 | ||
| with: { python-version: "3.11" } | ||
| - name: Run static analysis and format checkers | ||
| run: pipx run pre-commit run --all-files --show-diff-on-failure | ||
| - name: Install tox-gh plugin | ||
| run: python -m pip install tox-gh>=1.2 | ||
| - name: Build package distribution files | ||
| run: tox -e clean,build | ||
| - name: Record the paths of wheel and source tarball distributions | ||
| id: distribution-paths | ||
| run: | | ||
| echo "wheel=$(ls dist/*.whl)" >> $GITHUB_OUTPUT | ||
| echo "tarball=$(ls dist/*.tar.gz)" >> $GITHUB_OUTPUT | ||
| - name: Store the distribution files for use in other stages | ||
| # `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 | ||
| 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 }} | ||
|
|
||
| test: | ||
| needs: prepare | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
| platform: | ||
| - ubuntu-latest | ||
| - macos-latest | ||
| # TODO: Debug the Windows issues | ||
| # - windows-latest | ||
| env: | ||
| OS: ${{ matrix.platform }} | ||
| PYTHON: ${{ matrix.python }} | ||
| runs-on: ${{ matrix.platform }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - uses: actions/download-artifact@v3 | ||
| with: { name: python-distribution-files, path: dist/ } | ||
| - name: Install tox-gh plugin | ||
| run: python -m pip install tox-gh>=1.2 | ||
| - name: Setup test suite | ||
| run: tox -vv --notest | ||
| - name: Run tests | ||
| env: | ||
| SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} | ||
| run: >- | ||
| tox --installpkg '${{ needs.prepare.outputs.wheel-path }}' | ||
| -- -rFEx --durations 10 --color yes | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| # CodeCov can be flaky, so this step is not required for success | ||
| fail_ci_if_error: false | ||
| files: coverage.xml | ||
| # Using matrix pattern from `codecov/codecov-action` README: | ||
| # https://github.com/codecov/codecov-action#example-workflowyml-with-codecov-action | ||
| env_vars: OS,PYTHON | ||
| verbose: true | ||
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.