Skip to content

Commit

Permalink
github workflow intro
Browse files Browse the repository at this point in the history
  • Loading branch information
amitgaru2 committed Sep 4, 2023
1 parent fdcae89 commit 78b2298
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ master ]

jobs:
validate-tests:
runs-on: ubuntu-latest
steps:
- name: Checking out
uses: actions/checkout@v2

- name: Install dependencies
run: pip install pytest

- name: Run test cases
run: pytest

deploy-test-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: pip install build twine

- name: Build the project
run: python -m build

- name: Check the build
run: twine check dist/*

- name: Publish to test PyPI
run: twine upload -r testpypi dist/*

0 comments on commit 78b2298

Please sign in to comment.