Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cracked-machine authored Mar 10, 2024
1 parent 702392f commit d4ec006
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,22 @@ on:
branches: [ "develop", "main" ]

permissions:
contents: read

contents: write | read
pages: write
id-token: write
jobs:
build:

runs-on: ubuntu-latest

steps:
# init
- uses: actions/checkout@v3
- name: Install dependencies
run: |
make init
# run pytest
- name: Test with pytest
run: |
make test
- name: upload examples
uses: actions/upload-artifact@v4
with:
name: examples
path: |
docs
examples.md
if-no-files-found: error
- name: upload code coverage
uses: actions/upload-artifact@v4
with:
Expand All @@ -43,6 +36,15 @@ jobs:
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# publish pages
- name: Prepare examples
run: tar -cvf github-pages.tar examples.md docs
- name: upload examples
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: github-pages.tar
# publish wheel
- name: create wheel
run: |
env
Expand Down

0 comments on commit d4ec006

Please sign in to comment.