Bump version to 3.13.0; remove obsolete all-sky upload flow #65
This file contains hidden or 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 | |
| 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@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --extra webcam --group dev | |
| - name: Test with coverage (only on 3.12) | |
| if: matrix.python-version == '3.12' | |
| run: uv run pytest -vvs tests/ --cov=arcsecond --cov-report=xml:coverage.xml | |
| - name: Test without coverage | |
| if: matrix.python-version != '3.12' | |
| run: uv run pytest -vvs tests/ | |
| - name: Upload coverage artifact (only on 3.12) | |
| if: matrix.python-version == '3.12' | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: coverage | |
| path: coverage.xml | |
| scan: | |
| runs-on: ubuntu-latest | |
| needs: tests | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Download coverage artifact | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: coverage | |
| path: . | |
| - name: SonarQube Scan | |
| uses: SonarSource/sonarqube-scan-action@v6 | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: '3.12' | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --group dev | |
| - name: Lint with flake8 | |
| run: uv run flake8 arcsecond tests --count --select=E9,F63,F7,F82 --show-source --statistics | |
| - name: Check formatting with black | |
| run: uv run black --check arcsecond tests | |
| - name: Check imports with isort | |
| run: uv run isort --check-only --profile black arcsecond tests |