Skip to content

Commit

Permalink
Merge branch 'main' into refactor-schema-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 authored Oct 16, 2023
2 parents 6c017c7 + 2b3c0aa commit 9c87038
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 10 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,4 @@ jobs:
run: pdm install # Then you can use pdm in the following steps.
- name: Test with pytest & generate coverage
run: |
pdm run coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
pdm test
44 changes: 44 additions & 0 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Coverage

on:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# See: https://github.com/pdm-project/pdm/issues/1879
env:
PDM_DEPS: 'urllib3<2'

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: 3.9 # Version range or exact version of a Python version to use, the same as actions/setup-python
# well we use virtualenv here
# prerelease: true # Allow prerelease versions to be installed
# enable-pep582: true # Enable PEP 582 package loading globally
- name: Install dependencies
run: pdm install # Then you can use pdm in the following steps.
- name: Test with pytest & generate coverage
run: |
pdm run coverage
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ coverage:
default:
target: auto
threshold: 4%

codecov:
token: 86b6a2b8-9acb-4b50-b0da-04f14035d704
2 changes: 0 additions & 2 deletions src/bloqade/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ def rydberg_h(
from bloqade import start
from bloqade.atom_arrangement import AtomArrangement

print(type(atoms_positions))

if isinstance(atoms_positions, AtomArrangement):
prog = atoms_positions
else:
Expand Down

0 comments on commit 9c87038

Please sign in to comment.