Skip to content

Commit

Permalink
pr and pray
Browse files Browse the repository at this point in the history
  • Loading branch information
euanwm committed Feb 4, 2024
1 parent c0420c4 commit 02d4004
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ jobs:
with:
go-version: 1.20.2

- name: Linting
- name: Linting Backend
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
working-directory: ./backend
args: --verbose

- name: Build
- name: Build Backend
run: |
cd backend/
go build -v
- name: Test
- name: Test Backend
run: |
cd backend/
go test -coverprofile=coverage.txt ./...
Expand All @@ -69,11 +69,11 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
- name: PyLinting
run: |
pylint $(git ls-files python_tools/'*.py') --fail-under=8
9 changes: 8 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ jobs:
./backend local &
cd ../frontend/
npm install
npm run test
npm run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: frontend/coverage/cobertura-coverage.xml
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "node",
modulePaths: ["<rootDir>"],
collectCoverage: true,
coverageReporters: ["text", "cobertura"],
}

0 comments on commit 02d4004

Please sign in to comment.