Skip to content

Commit

Permalink
ci: add semver
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Apr 5, 2024
1 parent 3fcf785 commit 47d19ed
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ jobs:
pixi run python --version | grep 3.12
pixi run test | grep "Hello, World"
# Semantic-Release:
# runs-on: ubuntu-latest
# if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' )
# needs: Run-A-Pixi-Job
# concurrency: release
# permissions:
# id-token: write
# contents: write
# packages: write
# actions: read
# steps:
# - uses: actions/create-github-app-token@v1
# id: app-token
# with:
# app-id: ${{ vars.SEMVER_APPID }}
# private-key: ${{ secrets.SEMVER_SECRET }}

# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
Semantic-Release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' )
needs: Run-A-Pixi-Job
concurrency: release
permissions:
id-token: write
contents: write
packages: write
actions: read
steps:
# - uses: actions/create-github-app-token@v1
# id: app-token
# with:
# app-id: ${{ vars.SEMVER_APPID }}
# private-key: ${{ secrets.SEMVER_SECRET }}

- uses: actions/checkout@v4
with:
fetch-depth: 0
# token: ${{ steps.app-token.outputs.token }}

# - name: Python Semantic Release
# uses: python-semantic-release/python-semantic-release@master
# with:
# root_options: -vv
# github_token: ${{ secrets.GITHUB_TOKEN }}
# git_committer_name: 'gh-actions-semver'
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
root_options: -vv
github_token: ${{ secrets.GITHUB_TOKEN }}
git_committer_name: 'gh-actions-semver'
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To install the dependencies, run the following command:
pixi install
```

What this does is create a virtual environment and install the dependencies listed in the `pyproject.toml` file.
What this does is create a virtual environment and install the dependencies listed in the [pyproject.toml](pyproject.toml) file.
By starting command line commands with `pixi run`, you can run the commands in the specific environment.

```bash
Expand All @@ -26,14 +26,14 @@ pixi run python -m src.core.snakemake.main
This ensures that any other packages or dependencies can be synchronized across different environments, systems, and developers.

A feature of pixi is that it can be used to run common tasks.
For example, the above command has been implemented as a pixi task in the `pyproject.toml` file.
For example, the above command has been implemented as a pixi task in the [pyproject.toml](pyproject.toml) file.

To run the task, use the following command:

```bash
pixi run hello
# > ✨ Pixi task (default): python -m src.core.main
# > Hello, World!
```

TODO:: as development progresses, remove the hello_world function and add a more meaningful function to show the functionality of the project and PIXI in general.


0 comments on commit 47d19ed

Please sign in to comment.