add archives request for demo account #16
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: Aissyr API Version | |
on: | |
push: | |
branches: ["API"] | |
pull_request: | |
branches: ["API"] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Create virtual environment | |
run: python -m venv venv | |
- name: Activate virtual environment | |
run: | | |
source venv/bin/activate | |
python -m pip install --upgrade pip | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Set up environment variables | |
shell: bash | |
env: | |
API_URL: ${{ secrets.API_URL }} | |
DB_HOST: ${{ secrets.DB_HOST }} | |
DB_PORT: ${{ secrets.DB_PORT }} | |
DB_NAME: ${{ secrets.DB_NAME }} | |
DB_USERNAME: ${{ secrets.DB_USERNAME }} | |
DB_PASSWORD: ${{ secrets.DB_PASSWORD }} | |
run: | | |
echo "API_URL=${API_URL}" >> .env | |
echo "DAGSHUB_REPO_OWNER=${DAGSHUB_REPO_OWNER}" >> .env | |
echo "DAGSHUB_REPO=${DAGSHUB_REPO}" >> .env | |
echo "DAGSHUB_USER_TOKEN=${DAGSHUB_USER_TOKEN}" >> .env | |
echo "MODEL_URI=${MODEL_URI}" >> .env | |
echo "DB_HOST=${DB_HOST}" >> .env | |
echo "DB_PORT=${DB_PORT}" >> .env | |
echo "DB_NAME=${DB_NAME}" >> .env | |
echo "DB_USERNAME=${DB_USERNAME}" >> .env | |
echo "DB_PASSWORD=${DB_PASSWORD}" >> .env | |
- name: Run tests with pytest | |
run: pytest tests |