ManagedCertificate #690
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: | |
push: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version: "20" | |
- name: Install pipenv | |
run: pip install --user pipenv | |
- uses: actions/setup-python@v4 | |
with: | |
cache: pipenv | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
pipenv sync -d --pre | |
npm ci | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: deployments/development/Dockerfile | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: deployments/staging/Dockerfile | |
- name: Test | |
run: | | |
pipenv check | |
npm audit | |
git ls-files | grep -E '\.y(a?)ml$' | xargs -t pipenv run yamllint | |
pipenv run black --check *.py imperial_calendar stubs tests ui web | |
pipenv run flake8 . | |
pipenv run mypy *.py | |
pipenv run coverage erase | |
pipenv run coverage run -m unittest discover -s tests/imperial_calendar | |
pipenv run coverage run -m unittest discover -s tests/web | |
pipenv run coverage report -m |