Merge pull request #276 from markfairbanks/print-method #245
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-cd | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
ci: | |
# Step 1. Set up operating system | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
# Step 2. Set up Python 3.9 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Step 3. Check-out repository so we can access its contents | |
- uses: actions/checkout@v2 | |
# Step 4. Install poetry | |
- uses: snok/install-poetry@v1 | |
# Step 5. Install our pycounts package | |
- name: Install package | |
run: poetry install | |
# Step 6. Run tests for pycounts | |
- name: Test with pytest | |
run: poetry run pytest tests/ | |
# Step 8. Build documentation | |
- name: Build documentation | |
run: poetry run make html --directory docs/ |