Run tests #243
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: Run tests | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 5 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python3 -m venv .venv | |
source .venv/bin/activate | |
pip install poetry | |
poetry install | |
env: | |
API_AUTHORIZATION: ${{ secrets.API_AUTHORIZATION }} | |
API_URL: ${{ secrets.API_URL }} | |
USERNAME: ${{ secrets.USERNAME }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
TESTOMATIO: ${{ secrets.TESTOMATIO }} | |
- name: Run tests | |
run: | | |
source .venv/bin/activate | |
touch .env | |
echo "API_AUTHORIZATION=${{ secrets.API_AUTHORIZATION }}" >> .env | |
echo "API_URL=${{ secrets.API_URL }}" >> .env | |
echo "USERNAME=${{ secrets.USERNAME }}" >> .env | |
echo "PASSWORD=${{ secrets.PASSWORD }}" >> .env | |
echo "TESTOMATIO=${{ secrets.TESTOMATIO }}" >> .env | |
cat .env | |
TESTOMATIO=${{ secrets.TESTOMATIO}} pytest --analyzer sync |