-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevents Scheduled Workflow From Being Deactivated & [IBCDPE-898] Fix…
… Python Versioning Issue for CI (#3) * prevents scheduled workflow from turning off * drop 3.8 support * updates ci for correct python versioning * trailing whitespace * updates ci for correct environment configuration * pre-commit * removes 3.8 support
- Loading branch information
Showing
4 changed files
with
26 additions
and
12 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 |
---|---|---|
|
@@ -32,8 +32,10 @@ jobs: | |
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: pipx run --spec 'tox~=3.0' tox -e clean,build | ||
run: tox -e clean,build | ||
- name: Record the paths of wheel and source tarball distributions | ||
id: distribution-paths | ||
run: | | ||
|
@@ -48,43 +50,51 @@ jobs: | |
name: python-distribution-files | ||
path: dist/ | ||
retention-days: 1 | ||
- name: Keepalive Workflow | ||
uses: gautamkrishnar/[email protected] | ||
with: | ||
time_elapsed: 44 | ||
|
||
test: | ||
needs: prepare | ||
strategy: | ||
matrix: | ||
python: | ||
- "3.8" | ||
- "3.9" # oldest Python that is supported | ||
- "3.11" # newest Python that is stable | ||
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 }} | ||
- name: Retrieve pre-built distribution files | ||
uses: actions/download-artifact@v3 | ||
- 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 (without integration tests) | ||
if: matrix.platform != 'ubuntu-latest' || matrix.python != '3.11' | ||
env: | ||
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} | ||
run: >- | ||
pipx run --spec 'tox~=3.0' tox | ||
--installpkg '${{ needs.prepare.outputs.wheel-path }}' | ||
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}' | ||
-- -rFEx --durations 10 --color yes -m "not integration" | ||
- name: Run tests (with integration tests) | ||
if: matrix.platform == 'ubuntu-latest' && matrix.python == '3.11' | ||
env: | ||
SYNAPSE_AUTH_TOKEN: ${{ secrets.SYNAPSE_AUTH_TOKEN }} | ||
run: >- | ||
pipx run --spec 'tox~=3.0' tox | ||
--installpkg '${{ needs.prepare.outputs.wheel-path }}' | ||
tox --installpkg '${{ needs.prepare.outputs.wheel-path }}' | ||
-- -rFEx --durations 10 --color yes | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
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