fix(announcement): showing announcements in single page obly #186
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run Server and Client Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Decrypt .env file | |
run: echo "${{ secrets.ENV_FILE }}" > server/.env | |
env: | |
ENV_FILE: ${{ secrets.ENV_FILE }} | |
- name: Decrypt service_account_key.json file | |
run: | | |
echo "${{ secrets.SERVICE_ACCOUNT_KEY }}" | base64 -d > server/credentials/service_account_key.json | |
env: | |
SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }} | |
- name: Install Python Dependencies | |
run: pip install -r server/requirements.txt | |
- name: Install Node.js and NPM | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Install Client Dependencies | |
run: cd client && npm install && cd .. | |
- name: Run Server and Client Tests | |
run: | | |
coverage run --source=server -m pytest server/tests | |
cd client && npm run test && cd .. | |
- name: Send Coverage to Coveralls | |
run: coveralls | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |