chore: Update all #287
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 | |
on: | |
pull_request: | |
branches: master | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
container: python:3.12 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install package. | |
run: pip install -e . | |
- name: Install test dependencies. | |
run: pip install pytest | |
- name: Run the tests | |
run: pytest | |
build: | |
runs-on: ubuntu-latest | |
container: python:3.12 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install package. | |
run: pip install . | |
- name: Build the test site. | |
run: aip-site-gen tests/test_data/ /out/ | |
lint: | |
runs-on: ubuntu-latest | |
container: python:3.12 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install the linter (flake8). | |
run: pip install flake8 | |
- name: Run the linter. | |
run: flake8 aip_site/ tests/ | |
mypy: | |
runs-on: ubuntu-latest | |
container: python:3.12 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install package. | |
run: pip install . | |
- name: Install mypy. | |
run: pip install mypy | |
- name: Run mypy. | |
run: mypy aip_site |