Skip to content

Commit

Permalink
reduce CI to tests only
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Busch committed May 6, 2024
1 parent ea9cf7e commit 7351800
Showing 1 changed file with 2 additions and 56 deletions.
58 changes: 2 additions & 56 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,6 @@ jobs:
poetry-dependency-install-flags: "--all-extras"
- name: Run tests
run: |
python pytest -r a -v tests --doctest-modules --cov=src --cov-report=term-missing --cov-report=xml
pytest -r a -v tests --doctest-modules --cov=src --cov-report=term-missing --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

imports-without-extras:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.10" ]
runs-on: "${{ matrix.os }}"
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
python-version: "${{ matrix.python-version }}"
venv-id: "imports-without-extras-${{ runner.os }}"
poetry-dependency-install-flags: "--only main"
- name: Check importable without extras
run: poetry run python scripts/test-install.py

check-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
python-version: "3.10"
venv-id: "check-build-${{ runner.os }}"
run-poetry-install: false
poetry-dependency-install-flags: "not used"
- name: Build package
run: |
poetry build --no-interaction
- name: Check build
run: |
tar -tvf dist/primap_visualisation_tool-*.tar.gz --wildcards '*primap_visualisation_tool/py.typed'
check-dependency-licences:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
python-version: "3.10"
venv-id: "licence-check"
poetry-dependency-install-flags: "--all-extras"
- name: Check licences of dependencies
shell: bash
run: |
TEMP_FILE=$(mktemp)
poetry export --without=tests --without=docs --without=dev > $TEMP_FILE
poetry run liccheck -r $TEMP_FILE -R licence-check.txt
cat licence-check.txt
uses: codecov/codecov-action@v3

0 comments on commit 7351800

Please sign in to comment.