Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
feat(ci): initial CI integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
bitterteriyaki committed Nov 6, 2023
1 parent 9bcd056 commit 7f827c1
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Upload data to integrations

on:
push:
pull_request:
types:
- reopened

jobs:
upload:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.11"]
poetry-version: ["1.6.1"]

env:
DATABASE_URL: "sqlite:///db.sqlite3"
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry ${{ matrix.poetry-version }}
uses: snok/install-poetry@v1
with:
version: ${{ matrix.poetry-version }}
virtualenvs-create: false
installer-parallel: true

- name: Install dependencies
run: |
poetry run pip install --no-deps --upgrade pip
poetry install --with dev
- name: Generate configuration file
run: ./bin/create-env

- name: Generate tests coverage report
run: |
poetry run coverage run \
--source="." manage.py test \
--settings=server.settings.development
poetry run coverage xml
- name: Upload tests coverage report (Codecov)
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

- name: Upload tests coverage report (Code Climate)
uses: paambaati/[email protected]
with:
coverageCommand: coverage report

0 comments on commit 7f827c1

Please sign in to comment.