-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (29 loc) · 843 Bytes
/
ci.yml
File metadata and controls
30 lines (29 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on: [push, pull_request]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Set up Poetry 2.1.0
uses: abatilo/actions-poetry@v4.0.0
with:
poetry-version: 1.1.2
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.12.0
with:
mongodb-version: 4.4
- name: Run tests
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
ACCESS_TOKEN_SECRET_KEY: ${{ secrets.ACCESS_TOKEN_SECRET_KEY }}
REFRESH_TOKEN_SECRET_KEY: ${{ secrets.REFRESH_TOKEN_SECRET_KEY }}
run: make tests
- name: Upload coverage
uses: codecov/codecov-action@v5