Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohalt committed Mar 1, 2024
1 parent 131a661 commit d933fc1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,17 @@ on:
name: Create Release

jobs:
test:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- name: Lint with flake8
run: |
cd src
flake8 --version
flake8
- name: Test with pytest
run: |
cd src/tests
pytest --version
pytest
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -33,22 +26,29 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install build
- name: Build
run: |
cd src
python -m build
- uses: actions/upload-artifact@v4
with:
name: dist
path: src/dist
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: nicknovitski/nix-develop@v1
- name: Integration tests
run: |
pytest --version
pytest
release:
name: Create Release
runs-on: ubuntu-latest
environment: release
needs: build
needs: [lint, test]
permissions:
id-token: write
steps:
Expand Down

0 comments on commit d933fc1

Please sign in to comment.