EAR-2545 - Publish BICS wave 122 - Survey ID 283 and Form type 0002 #2044
Workflow file for this run
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: PR | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.2.2 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: ~/.virtualenvs | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v4 | |
id: cache-virtualenv | |
with: | |
path: ~/.virtualenvs | |
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-virtualenvs-${{ hashFiles('poetry.lock') }} | |
- name: Install virtual environment | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
run: poetry install | |
- name: Lint Python | |
run: make lint | |
validate-schemas: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.2.2 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: ~/.virtualenvs | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v4 | |
id: cache-virtualenv | |
with: | |
path: ~/.virtualenvs | |
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-virtualenvs-${{ hashFiles('poetry.lock') }} | |
- name: Install virtual environment | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
run: poetry install | |
- uses: actions/checkout@v4 | |
- name: Spin up validator | |
run: make run-validator | |
- name: Validate schemas | |
run: make validate-schemas | |
test-translation-templates: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
echo "PYTHON_VERSION=$(cat .python-version)" >> $GITHUB_ENV | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.2.2 | |
virtualenvs-create: true | |
virtualenvs-in-project: false | |
virtualenvs-path: ~/.virtualenvs | |
- name: Cache Poetry virtualenv | |
uses: actions/cache@v4 | |
id: cache-virtualenv | |
with: | |
path: ~/.virtualenvs | |
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-virtualenvs-${{ hashFiles('poetry.lock') }} | |
- name: Install virtual environment | |
if: steps.cache-virtualenv.outputs.cache-hit != 'true' | |
run: poetry install | |
- name: Test translation templates | |
run: make test-translation-templates |