Skip to content

Commit

Permalink
Merge pull request #485 from qiboteam/bisremovingrequirements
Browse files Browse the repository at this point in the history
Using actions v2
  • Loading branch information
scarrazza committed Oct 8, 2021
2 parents 147cddd + de74748 commit e82bc3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build wheels
Expand All @@ -36,17 +36,17 @@ jobs:
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Download wheels from artifact storage
uses: actions/download-artifact@v1
uses: actions/download-artifact@v2
with:
name: wheels
path: dist
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v2
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build docker image and upload to ghcr
run: |
IMAGE_NAME=qibo
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ jobs:
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install OS requirements
uses: mstksg/get-package@v1
with:
brew: libomp
- name: Set numba version for macos
if: startsWith(matrix.os, 'macos')
run: |
Expand Down Expand Up @@ -52,7 +48,7 @@ jobs:
OMP_NUM_THREADS=1 pytest examples/
- name: Upload coverage to Codecov
if: startsWith(matrix.os, 'ubuntu')
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
Expand Down

0 comments on commit e82bc3e

Please sign in to comment.