Fix the cache for docs ci (#25) #6
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: test ${{ matrix.python-version }} | |
strategy: | |
matrix: | |
python-version: [ '3.10', '3.11', '3.12' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup pdm | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pdm install -G test | |
- name: Run test | |
run: pdm run -v pytest |