Skip to content

Commit bbac53e

Browse files
authored
Merge pull request #75 from KrishnaswamyLab/versions_and_release
Correcting actions to release a new pypi packages. The filing test are expected
2 parents c59357b + b84a803 commit bbac53e

File tree

11 files changed

+410
-330
lines changed

11 files changed

+410
-330
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@master
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Python 3.10
20-
uses: actions/setup-python@v3
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: '3.10'
2323

2424
- name: Install pypa/build
2525
run: >-
26-
python -m
27-
pip install
28-
build
29-
--user
26+
python -m pip install build --user
3027
3128
- name: Build a binary wheel and a source tarball
3229
run: >-

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened, ready_for_review]
88

9+
permissions:
10+
contents: write
11+
workflows: write
12+
913
concurrency:
1014
group: ${{ github.workflow }}-${{ github.ref }}
1115
cancel-in-progress: true
@@ -23,19 +27,19 @@ jobs:
2327
2428
steps:
2529

26-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
2731
with:
2832
fetch-depth: 0
2933

3034
- name: Cache pre-commit
31-
uses: actions/cache@v3
35+
uses: actions/cache@v4
3236
with:
3337
path: ~/.cache/pre-commit
3438
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}-
3539

3640
- name: Run pre-commit
3741
id: precommit
38-
uses: pre-commit/[email protected].0
42+
uses: pre-commit/[email protected].1
3943
continue-on-error: true
4044

4145
- name: Commit files
@@ -59,4 +63,4 @@ jobs:
5963

6064
- name: Check pre-commit
6165
if: steps.precommit.outcome == 'failure'
62-
uses: pre-commit/[email protected].0
66+
uses: pre-commit/[email protected].1

.github/workflows/run_tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131

32-
- uses: actions/checkout@v3
32+
- uses: actions/checkout@v4
3333
with:
3434
fetch-depth: 0
3535

@@ -40,12 +40,12 @@ jobs:
4040
sudo apt-get install -y libhdf5-dev libhdf5-serial-dev pandoc gfortran libblas-dev liblapack-dev llvm-dev
4141
4242
- name: Set up Python
43-
uses: actions/setup-python@v3
43+
uses: actions/setup-python@v4
4444
with:
4545
python-version: ${{ matrix.config.python }}
4646

4747
- name: Cache Python packages
48-
uses: actions/cache@v3
48+
uses: actions/cache@v4
4949
with:
5050
path: ${{ env.pythonLocation }}
5151
key: ${{runner.os}}-${{ matrix.config.python }}-pip-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
@@ -71,7 +71,7 @@ jobs:
7171
7272
- name: Upload check results on fail
7373
if: failure()
74-
uses: actions/upload-artifact@master
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: ${{ matrix.config.name }}_results
7777
path: check

0 commit comments

Comments
 (0)