Oleksandr K | 249d3db | 2023-12-06 16:35:23 +0100 | [diff] [blame] | 1 | # Copyright (c) 2023 VEXXHOST, Inc. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 | # not use this file except in compliance with the License. You may obtain |
| 5 | # a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations |
| 13 | # under the License. |
| 14 | |
| 15 | name: PXC |
| 16 | |
| 17 | on: |
| 18 | pull_request: |
Mohammed Naser | ca0f0cd | 2024-01-01 20:59:46 -0500 | [diff] [blame] | 19 | paths-ignore: |
Mohammed Naser | 05d2af5 | 2024-01-01 21:11:26 -0500 | [diff] [blame] | 20 | - images/*/*/upper-constraints.txt |
Mohammed Naser | ca0f0cd | 2024-01-01 20:59:46 -0500 | [diff] [blame] | 21 | - go.mod |
| 22 | - go.sum |
Oleksandr K | 249d3db | 2023-12-06 16:35:23 +0100 | [diff] [blame] | 23 | |
| 24 | jobs: |
| 25 | molecule: |
| 26 | runs-on: v3-standard-8 |
| 27 | steps: |
| 28 | - name: Checkout project |
renovate[bot] | 38929d4 | 2024-01-02 11:18:18 -0500 | [diff] [blame] | 29 | uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 |
Oleksandr K | 249d3db | 2023-12-06 16:35:23 +0100 | [diff] [blame] | 30 | |
| 31 | - name: Install Poetry |
| 32 | run: pipx install poetry |
| 33 | |
| 34 | - name: Setup Python |
renovate[bot] | 7866afa | 2023-12-29 19:21:33 -0500 | [diff] [blame] | 35 | uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5 |
Oleksandr K | 249d3db | 2023-12-06 16:35:23 +0100 | [diff] [blame] | 36 | with: |
| 37 | cache: poetry |
| 38 | |
| 39 | - name: Install dependencies |
| 40 | run: poetry install --no-interaction --with dev |
| 41 | |
| 42 | - name: Turn off swap |
| 43 | run: sudo swapoff -a |
| 44 | |
| 45 | - name: Run Molecule |
| 46 | run: poetry run molecule test -s pxc |