Skip to content

Commit

Permalink
Merge pull request #203 from afids/node16
Browse files Browse the repository at this point in the history
Update actions to node16
  • Loading branch information
kaitj authored May 4, 2023
2 parents 140e3c2 + 2623937 commit a310c85
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/afids-validator_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}

Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}"

Expand Down Expand Up @@ -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 }}"'

Expand Down

0 comments on commit a310c85

Please sign in to comment.