Skip to content

Commit

Permalink
Adding the codecov token directly in the ci/cd via a secreat to ensur…
Browse files Browse the repository at this point in the history
…e that the coverage is properly displayed.
  • Loading branch information
JPchico committed Apr 15, 2024
1 parent 8b8b08b commit eb6ffb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[run]
source = src
parallel = True

[report]
omit =
*test*
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
replace-with: ''
- name: Run tox and codecov
if: matrix.python == '3.9'
run: tox -e py${{ steps.tox.outputs.replaced }}-aiida_vasp -- --cov=./aiida_vasp --cov-append --cov-report=xml
run: tox -e py${{ steps.tox.outputs.replaced }}-aiida_vasp -- --cov=aiida_vasp --cov-append --cov-report=xml
- name: Run tox
if: matrix.python != '3.9'
run: tox -e py${{ steps.tox.outputs.replaced }}-aiida_vasp
Expand All @@ -111,7 +111,9 @@ jobs:
if: matrix.python == '3.9'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: aiida-vasp
flags: pytests
fail_ci_if_error: true

validate-release-tag:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: test_lammps
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:latest
ports:
Expand All @@ -30,7 +43,6 @@ jobs:
sudo .ci/enable_ssh_localhost.sh
sudo apt install locate
sudo updatedb
sudo apt install postgresql
- name: Upgrade pip
run: |
pip install --upgrade pip
Expand Down

0 comments on commit eb6ffb4

Please sign in to comment.