match what we have in github
Some checks failed
execute / build (3.12) (push) Successful in 24s
Pylint / build (3.12) (push) Failing after 9s

This commit is contained in:
Greg Gauthier 2024-07-22 16:06:23 +00:00
parent 2042aea885
commit bea5486ada

View File

@ -7,31 +7,37 @@ env:
jobs: jobs:
build: build:
runs-on: python-latest runs-on: ubuntu-gitea
strategy:
matrix:
python-version: ["3.12"]
steps: steps:
- name: Clone Repo - uses: actions/checkout@v4
run: - name: Set up Python ${{ matrix.python-version }}
git clone https://repos.gmgauthier.com/gmgauthier/pytest-api.git . uses: actions/setup-python@v3
&& ls -la with:
- name: Prep Python Environment python-version: ${{ matrix.python-version }}
run: - name: Install dependencies
python -m pip install -r requirements.txt run: |
&& touch .env.gw python -m pip install --upgrade pip
&& touch .env.qa pip install pylint
- name: Run Open Api Tests python -m pip install -r requirements.txt
run: - name: Prep Env Files
echo "API_URL=${{ vars.GAMMA_WORLD_API_URL }}" >> .env.gw run: |
&& pytest -rA --durations=0 --color=auto --config-file=./pytest.ini -m rules touch .env.gw
- name: Run Oauth2 Api Tests touch .env.qa
run: - name: Run Open Api Tests
echo "API_URL=${{ secrets.EDD_QA_API_URL }}" >> .env.qa run: |
&& echo "CLIENT_ID=${{ secrets.EDD_CLIENT_ID }}" >> .env.qa echo "API_URL=${{ vars.GAMMA_WORLD_API_URL }}" >> .env.gw
&& echo "CLIENT_SECRET=${{ secrets.EDD_CLIENT_SECRET }}" >> .env.qa pytest -rA --durations=0 --color=auto --config-file=./pytest.ini -m rules
&& echo "TOKEN_FETCH_URL=${{ secrets.EDD_TOKEN_FETCH_URL }}" >> .env.qa - name: Run Oauth2 Api Tests
&& echo "LOGIN=${{ secrets.EDD_QA_LOGIN }}" >> .env.qa run: |
&& echo "PASSWORD=${{ secrets.EDD_QA_PWD }}" >> .env.qa echo "API_URL=${{ secrets.EDD_QA_API_URL }}" >> .env.qa
&& echo "AUDIENCE=${{ secrets.EDD_AUDIENCE }}" >> .env.qa echo "CLIENT_ID=${{ secrets.EDD_CLIENT_ID }}" >> .env.qa
&& echo "SCOPES=${{ secrets.EDD_SCOPES }}" >> .env.qa echo "CLIENT_SECRET=${{ secrets.EDD_CLIENT_SECRET }}" >> .env.qa
&& pytest -rA --durations=0 --color=auto --config-file=./pytest.ini -m get echo "TOKEN_FETCH_URL=${{ secrets.EDD_TOKEN_FETCH_URL }}" >> .env.qa
echo "LOGIN=${{ secrets.EDD_QA_LOGIN }}" >> .env.qa
echo "PASSWORD=${{ secrets.EDD_QA_PWD }}" >> .env.qa
echo "AUDIENCE=${{ secrets.EDD_AUDIENCE }}" >> .env.qa
echo "SCOPES=${{ secrets.EDD_SCOPES }}" >> .env.qa
pytest -rA --durations=0 --color=auto --config-file=./pytest.ini -m get