mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-16 20:27:05 +03:00
* Add authentication flags for list-qt-commercial, add tests for coverage * Add dry run * Make tests really use auth since secrets have been added, fix some indents * Fix auth issue, rename user 'email, and password 'pw' * Fix modules param type * Update commands names
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Check tox tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- releases/*
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
jobs:
|
|
check_document:
|
|
name: Check packaging 📦
|
|
runs-on: ubuntu-22.04
|
|
env:
|
|
AQT_TEST_EMAIL: ${{ secrets.AQT_TEST_EMAIL }}
|
|
AQT_TEST_PASSWORD: ${{ secrets.AQT_TEST_PASSWORD }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 20
|
|
fetch-tags: true
|
|
- name: Set up Python 3.12
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- name: Install tools
|
|
run: |
|
|
pip install -U pip
|
|
pip install tox tox-gh-actions coveralls coverage[toml]
|
|
- name: Test
|
|
run: |
|
|
tox
|
|
coverage xml -o cobertura.xml
|
|
env:
|
|
PYTEST_ADDOPTS: --cov-config=pyproject.toml --cov --cov-append --verbose
|
|
- name: Upload Coverage
|
|
run: coveralls --service=github
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/setup-java@v4
|
|
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
- name: Send coverage to codacy
|
|
if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
|
|
run: |
|
|
java -jar ci/codacy-coverage-reporter.jar report -l Python -t ${PROJECT_TOKEN} -r cobertura.xml
|
|
env:
|
|
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
|