diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6b4e39f..23c9b5c 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -2,7 +2,7 @@ name: Publish Python 🐍 distribution 📦 to PyPI on: push: - branches: [master, build/*] + branches: [main, build/*] jobs: build: @@ -20,7 +20,7 @@ jobs: run: | sed -i "/__version__/d" twinn_ml_interface/_version.py sed -i "s/__dev_version__/__version__/g" twinn_ml_interface/_version.py - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/main' - name: Install pypa/build run: >- diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index dc7e143..4f4ad4e 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -2,7 +2,7 @@ name: Publish Python 🐍 distribution 📦 to TestPyPI on: push: - branches: [master, build/*] + branches: [main, build/*] jobs: build: @@ -20,7 +20,7 @@ jobs: run: | sed -i "/__version__/d" twinn_ml_interface/_version.py sed -i "s/__dev_version__/__version__/g" twinn_ml_interface/_version.py - if: github.ref != 'refs/heads/master' + if: github.ref != 'refs/heads/main' - name: Install pypa/build run: >- diff --git a/.github/workflows/validate_pipeline.yml b/.github/workflows/validate_pipeline.yml index 14c1992..84801ba 100644 --- a/.github/workflows/validate_pipeline.yml +++ b/.github/workflows/validate_pipeline.yml @@ -32,26 +32,10 @@ jobs: - name: 'Run all pre-commit linters' run: | pre-commit run --all-files --show-diff-on-failure - - # testing: # TODO: Activate when Custom Protocol is public - - # runs-on: ubuntu-latest - # strategy: - # fail-fast: false - # matrix: - # python-version: ["3.10"] - - # steps: - # - uses: actions/checkout@v3 - # - name: Set up Python ${{ matrix.python-version }} - # uses: actions/setup-python@v3 - # with: - # python-version: ${{ matrix.python-version }} - # - name: Install pre-commit - # run: | - # python -m pip install --upgrade pip - # python -m pip install pytest - # pip install . - # - name: Test with pytest - # run: | - # pytest tests/ \ No newline at end of file + - name: Prepare for testing + run: | + python -m pip install pytest + pip install . + - name: Test with pytest + run: | + pytest tests/ \ No newline at end of file