mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 08:12:27 -05:00
Create shared project setup action
This commit is contained in:
15
.github/actions/setup-project/action.yml
vendored
Normal file
15
.github/actions/setup-project/action.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Set up project
|
||||||
|
description: Setup python & install dependencies
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- name: Install container dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get update \
|
||||||
|
&& sudo apt-get install -y --no-install-recommends \
|
||||||
|
libcurl4-openssl-dev
|
||||||
|
- name: Set up Python 3.9
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: "3.9"
|
||||||
20
.github/workflows/checks.yml
vendored
20
.github/workflows/checks.yml
vendored
@@ -50,16 +50,8 @@ jobs:
|
|||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install container dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update \
|
|
||||||
&& sudo apt-get install -y --no-install-recommends \
|
|
||||||
libcurl4-openssl-dev
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.9
|
- uses: ./.github/actions/setup-project
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: "3.9"
|
|
||||||
- name: Install application dependencies
|
- name: Install application dependencies
|
||||||
run: make bootstrap
|
run: make bootstrap
|
||||||
env:
|
env:
|
||||||
@@ -76,16 +68,8 @@ jobs:
|
|||||||
pip-audit:
|
pip-audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install container dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update \
|
|
||||||
&& sudo apt-get install -y --no-install-recommends \
|
|
||||||
libcurl4-openssl-dev
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.9
|
- uses: ./.github/actions/setup-project
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: "3.9"
|
|
||||||
- uses: trailofbits/gh-action-pip-audit@v1.0.0
|
- uses: trailofbits/gh-action-pip-audit@v1.0.0
|
||||||
with:
|
with:
|
||||||
inputs: requirements.txt requirements_for_test.txt
|
inputs: requirements.txt requirements_for_test.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user