Skip to content

Commit

Permalink
Use Windows runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-Grigg committed Feb 17, 2024
1 parent 53fd1b6 commit a95a8c0
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,40 @@ on:
jobs:
code-style:
name: "Code style"
runs-on: ubuntu-latest
container:
image: python:3.10
volumes:
- /tmp/keytabs:/tmp/keytabs
runs-on: windows-latest
steps:
- name: "Install Git and clone project"
uses: actions/checkout@v4

- name: "Configure host kerberos"
- name: "Set up Python"
uses: ansys/actions/_setup-python@main
with:
python-version: "3.10"

- name: "Create virtual environment"
run: |
apt update
export DEBIAN_FRONTEND=noninteractive
apt install -yq krb5-user git
python -m pip install --upgrade pip
python -m venv .venv
- name: "Install project and run pre-commit"
shell: bash
- name: "Install project"
if: inputs.skip-install == 'false'
run: |
python -m pip install poetry pre-commit
.venv/scripts/activate
python -m pip install poetry
python -m poetry install
python -m poetry run -- pre-commit run --all-files --show-diff-on-failure
- name: "Install pre-commit"
shell: bash
run: |
source .venv/scripts/activate
python -m pip install pre-commit
pre-commit install
- name: "Run pre-commit"
shell: bash
run: |
source .venv/scripts/activate
pre-commit run --all-files --show-diff-on-failure
# - uses: ansys/actions/code-style@v5.1
# with:
Expand Down

0 comments on commit a95a8c0

Please sign in to comment.