Skip to content

Commit

Permalink
ci: add secret to global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Jun 25, 2023
1 parent e4a48c0 commit faaa77e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Tests And Linting

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

env:
SECRET_KEY: "ThisIsABadSecret"

jobs:
validate:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,8 +50,6 @@ jobs:
with:
python-version: "3.11"
os: ${{ matrix.os }}
env:
SECRET_KEY: "ThisIsABadSecret"

sonarcloud:
name: SonarCloud
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
type: boolean
default: false

env:
SECRET_KEY: "ThisIsABadSecret"

jobs:
test:
runs-on: ${{ inputs.os }}
Expand Down Expand Up @@ -63,8 +66,6 @@ jobs:
source $VENV
pytest
- name: Test with coverage
env:
SECRET_KEY: "ThisIsABadSecret"
if: inputs.coverage
run: poetry run pytest tests --cov=niapi --cov-report=xml
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit faaa77e

Please sign in to comment.