Skip to content

Merge pull request #9 from Code0x58/codex/remove-codacy-links-and-upd… #2

Merge pull request #9 from Code0x58/codex/remove-codacy-links-and-upd…

Merge pull request #9 from Code0x58/codex/remove-codacy-links-and-upd… #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy-3.9"
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y zip p7zip-full
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install . pytest pytest-cov
- name: Run tests
run: pytest -vv --cov=jsonstore --cov-report=xml --junitxml=test-results.xml
- name: Upload coverage to Codecov
if: always() && env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v5
with:
token: ${{ env.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true
- name: Upload test results to Codecov
if: always() && env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@v5
with:
token: ${{ env.CODECOV_TOKEN }}
files: ./test-results.xml
report_type: test_results
fail_ci_if_error: true