Bump piped from 4d64e35
to 79dcd4c
(#867)
#1107
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
name: Run tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: "0 12 * * 6" | |
workflow_dispatch: | |
jobs: | |
py-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | |
with: | |
submodules: "true" | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install prerequisites | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -r ./piped/python/base-requirements/nox.txt | |
- name: Run tests | |
run: | | |
python -m nox -s test | |
# TODO: Could we switch over to gather coverage from the normal test runs and combining | |
# the result once https://github.com/nedbat/coveragepy/issues/1002 is fixed? | |
upload-coverage: | |
# needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@cd7d8d697e10461458bc61a30d094dc601a8b017 | |
with: | |
submodules: "true" | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c | |
with: | |
python-version: "3.9" | |
- name: install prerequisites | |
run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -r ./piped/python/base-requirements/nox.txt | |
- name: Record coverage | |
run: | | |
python -m nox -s test-coverage | |
- name: Upload coverage | |
uses: paambaati/codeclimate-action@a1831d7162ea1fbc612ffe5fb3b90278b7999d59 | |
env: | |
CC_TEST_REPORTER_ID: 117363998d7c6b4bab4ac57348026e1089767e142ccca3eb8cc37da6cf4cc8b9 | |
with: | |
coverageLocations: .coverage.xml:coverage.py | |
- name: Archive coverage | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 | |
with: | |
name: coverage | |
path: ./coverage_html | |
if-no-files-found: error |