Skip to content

Commit

Permalink
CI/CD improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagasaki45 committed Jun 16, 2024
1 parent a90a18b commit 2fa5348
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI Pipeline

on: [push]

env:
MAIN_PYTHON: "3.9"

jobs:
test:
name: Test 🧪
Expand Down Expand Up @@ -36,13 +39,32 @@ jobs:
- name: Run type check
run: mypy . --exclude build

- name: Run unit tests with Xvfb, necessary for clipboard tests
- name: Run unit tests with Xvfb (necessary for clipboard tests) and coverage
run: xvfb-run coverage run -m pytest

- name: Store the coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report-${{ matrix.python-version }}
path: .coverage

coverage:
name: Upload coverage report 📊 to Codecov
runs-on: ubuntu-latest
needs: test

steps:
- name: Download the coverage reports
uses: actions/download-artifact@v3
with:
name: coverage-report-${{ env.MAIN_PYTHON }}
path: .coverage

- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: .coverage
token: ${{ secrets.CODECOV_TOKEN }}

build:
Expand All @@ -53,10 +75,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup python 3.9
- name: Setup python ${{ env.MAIN_PYTHON }}
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: ${{ env.MAIN_PYTHON }}

- name: Install pypa/build
run: pip install build
Expand Down
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit 2fa5348

Please sign in to comment.