Merge pull request #2855 from cal-itp/ci-cleanup #76
This file contains 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: Test, visualize, and build calitp-map-utils | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/build-calitp-map-utils.yml' | ||
- 'apps/maps/calitp_map_utils/**' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/build-calitp-map-utils.yml' | ||
- 'apps/maps/calitp_map_utils/**' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
jobs: | ||
check_and_build: | ||
name: check python | ||
runs-on: ubuntu-latest | ||
working-directory: apps/maps | ||
Check failure on line 23 in .github/workflows/build-calitp-map-utils.yml GitHub Actions / Test, visualize, and build calitp-map-utilsInvalid workflow file
|
||
steps: | ||
- run: sudo apt-get install -y libgraphviz-dev graphviz-dev | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
- run: curl -sSL https://install.python-poetry.org | python - | ||
- run: poetry install | ||
- run: poetry run mypy calitp_map_utils | ||
- run: poetry run pytest --spec | ||
- run: poetry run build | ||
# TODO: should we actually publish to pypi? |