-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.52 KB
/
test_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: test-pre-commit
on:
release:
types: [published]
push:
branches:
- develop
permissions:
contents: write
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false
jobs:
pre-commit-check:
runs-on: ubuntu-latest
container:
image: ghcr.io/pythonbiellagroup/dockbase/python-base:${{vars.BASE_DOCKER_VERSION}}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Git
run: sudo apt-get update && sudo apt-get install git -y
- name: Add mkdocs-material credentials
shell: bash
run: poetry config http-basic.mkdocs ${{secrets.GHCR_USERNAME}} ${{secrets.GHCR_TOKEN}}
- name: Install dependencies
shell: bash
run: poetry install
- name: Install pre-commit check
shell: bash
run: poetry run pre-commit install
- name: Run pre-commit check
shell: bash
run: poetry run pre-commit run -a