remove contribution section. #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DOSH CLI Package | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
permissions: | |
contents: read | |
jobs: | |
pre-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v9 | |
- name: Install dependencies | |
run: poetry install | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
- name: Test with pytest | |
run: poetry run pytest | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: tests/cov_html | |
build-on-linux: | |
needs: pre-checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Package DOSH CLI for Linux | |
run: ./package.sh | |
- name: Archive package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dosh-cli-linux | |
path: dosh-cli-* | |
build-on-macos: | |
needs: pre-checks | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Package DOSH CLI for Linux | |
run: ./package.sh | |
- name: Archive package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dosh-cli-macos | |
path: dosh-cli-* | |
build-on-windows: | |
needs: pre-checks | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Package DOSH CLI for Linux | |
run: ./package.sh | |
shell: bash | |
- name: Archive package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dosh-cli-windows | |
path: dosh-cli-* |