Skip to content

build(deps): bump black from 24.3.0 to 24.4.0 #199

build(deps): bump black from 24.3.0 to 24.4.0

build(deps): bump black from 24.3.0 to 24.4.0 #199

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- '**'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name != 'pull_request' && github.sha || '' }}
cancel-in-progress: true
jobs:
tox:
name: ${{ matrix.tox.name }} ${{ matrix.os.emoji }} ${{ matrix.os.name }} ${{ matrix.python }}
runs-on: ${{ matrix.os.runs-on }}
strategy:
fail-fast: false
matrix:
tox:
- name: Test
environment: py
os:
- name: Linux
matrix: linux
emoji: 🐧
runs-on: [ubuntu-latest]
- name: macOS
matrix: macos
emoji: 🍎
runs-on: [macos-latest]
- name: Windows
matrix: windows
emoji: 🪟
runs-on: [windows-latest]
python:
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install test dependencies
run: |
python -m pip install tox
python -m pip install coverage
- name: Run ${{ matrix.tox.name }} in tox
run: |
python -m tox -e ${{ matrix.tox.environment }}
- name: Export coverage XML
run: |
coverage xml -o coverage.xml
- name: Debug codeclimate
run: |
echo $(pwd)
- name: Format coverage data for Code Climate
shell: bash
run: |
scripts/coverage-format.sh
- name: Archive coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.os.name }}-${{ matrix.python }}
path: codeclimate.json
coverage:
needs: tox
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- name: Report coverage to Code Climate
shell: bash
run: |
scripts/coverage.sh
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}