forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 933 Bytes
/
validate.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
name: Validate
on: [pull_request, push]
jobs:
validate:
runs-on: org-${{ github.repository_owner_id }}-amd64-k8s
container: registry.suse.com/bci/python:3.11
env:
GOLANG_CI_LINT_VERSION: v1.54.2
GOLANG_VERSION: '1.23'
steps:
- name: Install dependencies
shell: bash
run: zypper install -y git awk
- name: Git safe directory
run: git config --global --add safe.directory "$PWD"
- name: Checkout code
uses: actions/checkout@v4
- name: Check Python version
run: |
python3 --version
python3 -m ensurepip --upgrade
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "${{ env.GOLANG_VERSION }}"
- name: Install Python and dependencies
run: |
pip3 install --upgrade pip
pip3 install tox flake8
- name: Validate
run: ./scripts/validate