update the CSS code (#33) #132
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: Tests | |
on: [push] | |
jobs: | |
run-api-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: pulling git repo | |
uses: actions/checkout@v3 | |
- name: Install python version 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
# cache: 'pip' # caching pip dependencies | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: pip-requirements-${{ hashFiles('**/requirements.txt') }} | |
- name: install all dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: lint with ruff | |
uses: chartboost/ruff-action@v1 | |
with: | |
args: "check" | |
- name: Create env file | |
run: | | |
touch .env | |
echo CLIENT_ID=${{ secrets.CLIENT_ID }} >> .env | |
echo CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} >> .env | |
cat .env | |
- name: test with pytest | |
run: | | |
python -m pytest |