diff --git a/.github/workflows/afids-validator_ci.yml b/.github/workflows/afids-validator_ci.yml index 4a03acbc..b15163c2 100644 --- a/.github/workflows/afids-validator_ci.yml +++ b/.github/workflows/afids-validator_ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ["3.8", "3.9", "3.10"] steps: - name: Checkout pull request branch @@ -20,12 +20,12 @@ jobs: ref: ${{ github.sha }} - name: Select Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Cache environment - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache with: path: ~/.cache/pip @@ -35,13 +35,12 @@ jobs: - name: Install poetry uses: snok/install-poetry@v1 with: - version: 1.3.2 virtualenvs-create: true virtualenvs-in-project: true - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .venv key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }} @@ -63,9 +62,9 @@ jobs: - name: Setup PostgreSQL db shell: bash env: - psql_db_owner: testuser # PostgreSQL User - psql_db_pw: testpass # PostgreSQL Pass - psql_db_name: testdb # PostgreSQL DB + psql_db_owner: testuser # PostgreSQL User + psql_db_pw: testpass # PostgreSQL Pass + psql_db_name: testdb # PostgreSQL DB run: | sudo -u postgres psql --command="CREATE USER $psql_db_owner PASSWORD '$psql_db_pw'" sudo -u postgres createdb --owner=$psql_db_owner $psql_db_name @@ -74,7 +73,7 @@ jobs: - name: Test AFIDs validator shell: bash env: - FLASK_ENV: testing # Sets flask environment + FLASK_ENV: testing # Sets flask environment DATABASE_URL: postgresql://testuser:testpass@localhost/testdb run: | poetry run python -m unittest @@ -86,7 +85,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.9', '3.10'] + python-version: ["3.8", "3.9", "3.10"] steps: - name: Checkout pull request branch @@ -95,7 +94,7 @@ jobs: ref: ${{ github.sha }} - name: Select Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -108,7 +107,7 @@ jobs: - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: .venv key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }} @@ -137,7 +136,7 @@ jobs: steps: - name: Assign reviewer - uses: kentaro-m/auto-assign-action@v1.1.2 + uses: kentaro-m/auto-assign-action@v1.2.5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" @@ -193,7 +192,7 @@ jobs: - name: Update version in pyproject.toml uses: jacobtomlinson/gha-find-replace@master with: - include: 'pyproject.toml' + include: "pyproject.toml" find: 'version = "v(?:([0-9]+\.[0-9]+\.[0-9]+.+)|([0-9]+\.[0-9]+\.[0-9]+))"' replace: 'version = "${{ env.NEW_RELEASE }}-pre.${{ env.NEW_BUMP }}"'