corrigindo variaveis de ambiente ao CI #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pipeline | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
DATABASE_URL: ${{secrets.sDATABASE_URL}} | |
SECRET_KEY: ${{secrets.SECRET_KEY}} | |
ALGORITHM: ${{secrets.ALGORITHM}} | |
ACCESS_TOKEN_EXPIRE_MINUTES: ${{secrets.ACCESS_TOKEN_EXPIRE_MINUTES}} | |
steps: | |
- name: Copia os arquivos do repositório | |
uses: actions/checkout@v3 | |
- name: Instalar o Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Instalar Poetry | |
run: pipx install poetry | |
- name: Instalar dependências | |
run: poetry install | |
- name: Executar os testes | |
run: poetry run task test | |