Skip to content

Bumping minor version #28

Bumping minor version

Bumping minor version #28

Workflow file for this run

name: Run Tests
on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest pytest-cov respx
pip install -e .
- name: Test with coverage (only on 3.12)
if: matrix.python-version == '3.12'
run: |
pytest -vvs tests/ --cov=arcsecond --cov-report=xml:coverage.xml
- name: Test without coverage
if: matrix.python-version != '3.12'
run: pytest -vvs tests/
- name: Upload coverage artifact (only on 3.12)
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
scan:
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
- name: Download coverage artifact
uses: actions/download-artifact@v4
with:
name: coverage
path: .
- name: SonarQube Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 black isort
- name: Lint with flake8
run: |
flake8 arcsecond tests --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Check formatting with black
run: |
black --check arcsecond tests
- name: Check imports with isort
run: |
isort --check-only --profile black arcsecond tests