chore: optimize dockerfile #1311
Workflow file for this run
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: CI | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
ci: | |
if: ${{ !cancelled() && ! failure() }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
fetch-depth: 0 | |
- uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4 | |
with: | |
cache: true | |
python-version: ${{ matrix.python-version }} | |
version: 2.15.1 | |
- id: pages | |
name: Setup pages | |
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 | |
- run: env | sort | |
- run: make dev | |
- run: make lint | |
- run: make test | |
- run: make doc | |
env: | |
CI_PAGES_URL: ${{ steps.pages.outputs.base_url }} | |
- run: make build | |
strategy: | |
matrix: | |
os: | |
# renovate: github-runner | |
- macos-14 | |
# renovate: github-runner | |
- ubuntu-22.04 | |
# renovate: github-runner | |
- windows-2022 | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
# Python 3.8 and 3.9 do not run on macos-14 which is using arm64 hardware. | |
exclude: | |
# renovate: github-runner | |
- os: macos-14 | |
python-version: "3.8" | |
# renovate: github-runner | |
- os: macos-14 | |
python-version: "3.9" | |
include: | |
- os: macos-13 | |
python-version: "3.8" | |
- os: macos-13 | |
python-version: "3.9" | |
consistency: | |
if: ${{ !cancelled() && ! failure() }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: env | sort | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Set up Git | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- run: pipx install copier==9.2.0 | |
- run: make consistency | |
- run: git diff | |
- run: git status --porcelain | |
- run: test -z "$(git status --porcelain)" | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- main |