Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Aug 25, 2023
1 parent e13484c commit 4ee2968
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name: CI
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches:
- main
- 'dev/**'
pull_request:
branches: [ main ]
schedule:
- cron: '00 6 1 * *'
release:
types:
- published
Expand All @@ -24,13 +24,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version:
- 3.7
- 3.8
- 3.9
- "3.10"
- "3.11"

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -66,7 +71,7 @@ jobs:
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: 3.8
python-version: "3.10"

- name: Build sdist
run: python setup.py sdist
Expand All @@ -93,5 +98,4 @@ jobs:
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 4ee2968

Please sign in to comment.